ID:               41884
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Assigned
 Bug Type:         Feature/Change Request
 Operating System: Irrelevant
 PHP Version:      5CVS-2007-07-03 (CVS)
-Assigned To:      
+Assigned To:      helly


Previous Comments:
------------------------------------------------------------------------

[2007-07-03 09:10:16] [EMAIL PROTECTED]

Here is a patch for it: http://dev.daylessday.org/diff/bug41884.diff
but I'd like to hear Marcus opinion before committing it.


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

[2007-07-03 08:35:29] [EMAIL PROTECTED]

Description:
------------
Static properties with default values do not appear in the result of
ReflectionClass::getDefaultProperties().

Reproduce code:
---------------
<?php
class Foo
{
    protected static $fooStatic = 'foo';
    protected $foo = 'foo';
}

$class = new ReflectionClass('Foo');

print_r($class->getDefaultProperties());

Expected result:
----------------
Array
(
    [fooStatic] => foo
    [foo] => foo
)

Actual result:
--------------
Array
(
    [foo] => foo
)


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


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

Reply via email to