From: stefan at hotpaenz dot de Operating system: Linux 2.6.3 PHP version: 5CVS-2004-08-03 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: get_class_vars() severely broken when used with arrays
Description: ------------ The get_class_vars() function doesn't work correctly when the class contains an array. Reproduce code: --------------- <?php class ClassA { var $var=array(); } $var=get_class_vars('ClassA'); var_dump($var); Expected result: ---------------- array(1) { ["var"]=> array(0) { } } Actual result: -------------- array(1) { ["var"]=> UNKNOWN:0 } -- Edit bug report at http://bugs.php.net/?id=29505&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29505&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29505&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29505&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29505&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29505&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29505&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29505&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29505&r=support Expected behavior: http://bugs.php.net/fix.php?id=29505&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29505&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29505&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29505&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29505&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29505&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29505&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29505&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29505&r=float