From:             [EMAIL PROTECTED]
Operating system: Irrelevant
PHP version:      5CVS-2007-07-03 (CVS)
PHP Bug Type:     Feature/Change Request
Bug description:  ReflectionClass::getDefaultProperties() does not handle 
static attributes

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 bug report at http://bugs.php.net/?id=41884&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41884&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41884&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41884&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41884&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41884&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41884&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41884&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41884&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41884&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41884&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41884&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41884&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41884&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41884&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41884&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41884&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41884&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41884&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41884&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41884&r=mysqlcfg

Reply via email to