#31651 [Asn->Csd]: ReflectionClass::getDefaultProperties segfaults with arrays.
| From: | helly@php.net | Date: | Sat, 22 Jan 2005 12:31:58 +0000 |
| Subject: | #31651 [Asn->Csd]: ReflectionClass::getDefaultProperties segfaults with arrays. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-72657@lists.php.net to get a copy of this message | ||
ID: 31651
Updated by: helly@php.net
Reported By: alan_k@php.net
-Status: Assigned
+Status: Closed
Bug Type: Zend Engine 2 problem
Operating System: *
PHP Version: 5.0.3
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:
------------------------------------------------------------------------
[2005-01-22 04:16:24] alan_k@php.net
Description:
------------
example / title pretty much covers it :)
Reproduce code:
---------------
php -r 'class a { var $a=array('a'=>1); } $c = new
ReflectionClass("a"); print_r($c->getdefaultProperties());'
Expected result:
----------------
Array
(
[a] => Array
(
[a] => 1
)
)
Actual result:
--------------
Array
(
[a] => Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31651&edit=1