Req #41670 [Asn->Wfx]: ReflectionProperty class in reflection api lacks getDefaultValue method
Edit report at https://bugs.php.net/bug.php?id=41670&edit=1
ID: 41670
Updated by: cataphract@php.net
Reported by: killgec at gmail dot com
Summary: ReflectionProperty class in reflection api lacks
getDefaultValue method
-Status: Assigned
+Status: Wont fix
Type: Feature/Change Request
Package: *General Issues
PHP Version: 5.2.3
Assigned To: cataphract
Block user comment: N
Private report: N
New Comment:
Closing as Wont fix because the original value of static properties for user-land classes is not
retained.
Previous Comments:
------------------------------------------------------------------------
[2010-10-27 00:23:24] cataphract@php.net
Note there's already ReflectionClass::getDefaultProperties() and
ReflectionClass::getStaticProperties().
------------------------------------------------------------------------
[2010-07-27 22:13:14] rasmus at mindplay dot dk
Yep, missing for me too - this is one of the two missing features holding back some of the really
cool stuff you could do with reflection... there are no good workarounds for this, it really needs
to be fixed.
------------------------------------------------------------------------
[2010-06-01 02:37:28] jonwage at gmail dot com
I could use this feature as well.
------------------------------------------------------------------------
[2009-05-06 08:35:47] no2spam at chello dot nl
This would be very useful for me. Especially for code generation
------------------------------------------------------------------------
[2007-06-12 11:45:45] killgec at gmail dot com
Description:
------------
ReflectionProperty class in reflection api lacks getDefaultValue method.
So there is no way to find out if a property in a class examined with reflection API has a default
value, and what this value is.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=41670&edit=1
Thread (6 messages)