ID:               22214
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         Zend Engine 2 problem
 Operating System: Linux
 PHP Version:      5CVS-2003-02-13 (dev)
 New Comment:

Yes. updated 5 minutes ago.
I Will checkout my sources new... perhaps...


Previous Comments:
------------------------------------------------------------------------

[2003-02-13 16:06:02] [EMAIL PROTECTED]

I can't reproduce this with ZE2, it works just fine...

Output:

test1:b Content of t1:This is a simple Variable
test2:a Content of t1:This is a simple Variable
test1:b Content of t1:This is a simple Variable

Which is just nice.

Are you sure you are using latest CVS?



------------------------------------------------------------------------

[2003-02-13 16:00:34] [EMAIL PROTECTED]

To Reproduce call the following code:
<?php
  class test1 {
    var $t1 = "This is a simple Variable";
    function b() {
        echo "test1:b Content of t1:".$this->t1."\n";
    }
  }
class test2 extends test1 {
  function a() {
        echo "test2:a Content of t1:".$this->t1."\n";
  }
}


$a = new test1;
$a->b();
$a = new test2;
$a->a();
$a->b();

php?>

In My opinnion the Text must be printet 3 times..
But only in the first Method it will be printed. In the class test2 it
is empty --> not declared ...

It this a Bug or a feature ?

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22214&edit=1

Reply via email to