Edit report at https://bugs.php.net/bug.php?id=51581&edit=1

 ID:                 51581
 Comment by:         dev at pp3345 dot de
 Reported by:        ChadFulton at gmail dot com
 Summary:            getDefaultProperties incorrect for static properties
 Status:             Wont fix
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Mac OSx 10.6
 PHP Version:        5.3.2
 Assigned To:        dmitry
 Block user comment: N
 Private report:     N

 New Comment:

Hello,

I was going to report a similar bug as I'm experiencing the same problem. I 
actually believe that this problem should be 
fixed as it could be quite useful in some cases to retrieve the default values 
of static class properties. It would be nice 
if you could think about fixing this again. I'm not sure if this is easily 
possible, but a solution without raising memory 
consumption for everyone could be an additional ini-setting that enables and 
disables tracking of the default values of 
static properties.


Previous Comments:
------------------------------------------------------------------------
[2010-05-26 18:45:53] dmi...@php.net

PHP don't have to keep the default values of static class variables of 
user-defined classes. Of course it might be used in ext/Reflection but it would 
require less-efficient and more-memory-consumption implementation which would 
affect any php script which use classes with static properties.

I would stay the behaviour as is and would disable access to default static 
properties values which is incorrect anyway.

------------------------------------------------------------------------
[2010-05-21 11:29:43] m...@php.net

IMO actually a scripting engine problem.

------------------------------------------------------------------------
[2010-05-13 07:20:17] ChadFulton at gmail dot com

Thanks for taking this issue up!

------------------------------------------------------------------------
[2010-05-12 15:45:58] m...@php.net

Dmitry, could you please review the fix-refs-to-default-static-members patch?

Thank you.

------------------------------------------------------------------------
[2010-05-12 15:45:35] m...@php.net

The following patch has been added/updated:

Patch Name: fix-reflection-of-default-static-members
Revision:   1273671935
URL:        
http://bugs.php.net/patch-display.php?bug=51581&patch=fix-reflection-of-default-static-members&revision=1273671935

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=51581


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=51581&edit=1

Reply via email to