php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27979 ArrayObject segfaults
Submitted: 2004-04-13 11:02 UTC Modified: 2004-04-13 15:08 UTC
From: nlopess@php.net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5CVS-2004-04-13 (dev) OS: Win XP
Private report: No CVE-ID: None
 [2004-04-13 11:02 UTC] nlopess@php.net
Description:
------------
PHP segfaults using the given script.

Reproduce code:
---------------
<?php

$array = array('1' => 'one',
               '2' => 'two',
               '3' => 'three');

$object = new ArrayObject($array);
$arrayobject = new ArrayObject($object);

$arrayobject[] = 'four';
?>

Actual result:
--------------
$ gdb php
GNU gdb 2003-09-20-cvs (cygwin-special)
(...)
(gdb) run bug-spl.php
Starting program: /cygdrive/c/PHP/php.exe bug-spl.php
---Type <return> to continue, or q <return> to quit---

Program received signal SIGSEGV, Segmentation fault.
0x1003d8d3 in zend_bailout () from /cygdrive/c/PHP/php5ts.dll
(gdb) bt
#0  0x1003d8d3 in zend_bailout () from /cygdrive/c/PHP/php5ts.dll
#1  0x00a00278 in ?? ()
#2  0x00000002 in ?? ()
#3  0x00000001 in ?? ()
#4  0x00362680 in ?? ()
#5  0x10005189 in php5ts!add_next_index_null ()
   from /cygdrive/c/PHP/php5ts.dll

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-13 15:08 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: Wed Oct 09 03:01:28 2024 UTC