php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31651 ReflectionClass::getDefaultProperties segfaults with arrays.
Submitted: 2005-01-22 04:16 UTC Modified: 2005-01-22 13:31 UTC
From: alan_k@php.net Assigned: helly (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 5.0.3 OS: *
Private report: No CVE-ID: None
 [2005-01-22 04:16 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-22 13:31 UTC] helly@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 03:01:29 2024 UTC