From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      5CVS-2003-02-13 (dev)
PHP Bug Type:     Zend Engine 2 problem
Bug description:  On Class Extend mainClass no Vars are inherite

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 bug report at http://bugs.php.net/?id=22214&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22214&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22214&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22214&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22214&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22214&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22214&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22214&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22214&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22214&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22214&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22214&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22214&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22214&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22214&r=gnused

Reply via email to