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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alan_k@php.net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Thu Nov 21 10:01:29 2024 UTC