ID: 30131 Comment by: php at bobsilva dot com Reported By: D dot Kingma at jool dot nl Status: Open Bug Type: Zend Engine 2 problem Operating System: win XP PHP Version: 5CVS-2004-09-17 (dev) New Comment:
This is fixed in 5.1 CVS Previous Comments: ------------------------------------------------------------------------ [2004-09-17 12:03:54] D dot Kingma at jool dot nl Description: ------------ When a class extends the reflectionclass the initialized values of a property are forgotton (actually not only the value but the whole property, resulting in an Notice 'undefined property') Reproduce code: --------------- <?php class A extends reflectionClass{ public $x="you"; public function __construct(){ echo "Hello ".$this->x; } } new A(); ?> Expected result: ---------------- Hello you Actual result: -------------- Hello ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30131&edit=1