#30131 [Fbk->NoF]: Property behaviour when extending reflectionClass
| From: | php-bugs at lists dot php dot net | Date: | Tue, 19 Oct 2004 23:00:04 +0000 |
| Subject: | #30131 [Fbk->NoF]: Property behaviour when extending reflectionClass | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-67800@lists.php.net to get a copy of this message | ||
ID: 30131
Updated by: php-bugs@lists.php.net
Reported By: D dot Kingma at jool dot nl
-Status: Feedback
+Status: No Feedback
Bug Type: Zend Engine 2 problem
Operating System: win XP
PHP Version: 5CVS-2004-09-17 (dev)
New Comment:
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2004-10-12 09:33:09] derick@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2004-10-12 09:24:21] php at bobsilva dot com
This is fixed in 5.1 CVS
------------------------------------------------------------------------
[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