|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30131 Property behaviour when extending reflectionClass
Submitted: 2004-09-17 12:03 UTC Modified: 2004-10-20 11:42 UTC
From: D dot Kingma at jool dot nl Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5CVS-2004-09-17 (dev) OS: win XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: D dot Kingma at jool dot nl
New email:
PHP Version: OS:


 [2004-09-17 12:03 UTC] D dot Kingma at jool dot nl
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:

class A extends reflectionClass{
	public $x="you";

	public function __construct(){
		echo "Hello ".$this->x;	
new A();

Expected result:
Hello you

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-12 09:24 UTC] php at bobsilva dot com
This is fixed in 5.1 CVS
 [2004-10-12 09:33 UTC]
Please try using this CVS snapshot:
For Windows:
 [2004-10-20 01:00 UTC] php-bugs at lists dot php dot net
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".
 [2004-10-20 11:42 UTC] D dot Kingma at jool dot nl
Thnx for fixing!
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Jul 27 15:01:23 2021 UTC