#29505 [Opn->Csd]: get_class_vars() severely broken when used with arrays
| From: | helly@php.net | Date: | Tue, 03 Aug 2004 17:04:17 +0000 |
| Subject: | #29505 [Opn->Csd]: get_class_vars() severely broken when used with arrays | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-64032@lists.php.net to get a copy of this message | ||
ID: 29505
Updated by: helly@php.net
Reported By: stefan at hotpaenz dot de
-Status: Open
+Status: Closed
Bug Type: Zend Engine 2 problem
Operating System: *
PHP Version: 5.0.0
Assigned To: helly
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2004-08-03 12:16:55] stefan at hotpaenz dot de
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 this bug report at http://bugs.php.net/?id=29505&edit=1