From: White_Angel at gmx dot de
Operating system: Linux;RedHat8.0;2.4.18-24
PHP version: 5CVS-2003-02-18 (dev)
PHP Bug Type: Class/Object related
Bug description: Inherited Classes ignore initalization-value of inherites Variables
And Again:
Inherited Classes ignore initalization-value of inherites Variables
Clean CVS checkout.
default configure & make ....
The Following Test Fail.
(Checked on 2 Systems. SMP & !SMP)
--TEST--
Classes inheritance test
--POST--
--GET--
--FILE--
<?php
/* Inheritance test2. Inherited Vars */
class foo {
var $a="Content A";
function display() {
echo "This is class foo\n";
echo "a = ".$this->a."\n";
}
};
class bar extends foo {
function display() { /* alternative display function for class bar */
echo "This is class bar\n";
echo "a = ".$this->a."\n";
}
};
$foo1 = new foo;
$foo1->display();
$bar1 = new bar;
$bar1->display();
--EXPECT--
This is class foo
a = Content A
This is class bar
a = Content A
--- Im getting
This is class foo
a = Content A
This is class bar
a =
PS: If i make a mistake. This Info is welcome to me too.
--
Edit bug report at http://bugs.php.net/?id=22269&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22269&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22269&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22269&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22269&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22269&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22269&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22269&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22269&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22269&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22269&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22269&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22269&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22269&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22269&r=gnused