From: [EMAIL PROTECTED]
Operating system: Win XP
PHP version: 5CVS-2004-04-13 (dev)
PHP Bug Type: Zend Engine 2 problem
Bug description: ArrayObject segfaults
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
--
Edit bug report at http://bugs.php.net/?id=27979&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27979&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27979&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27979&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27979&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27979&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27979&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27979&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27979&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27979&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27979&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27979&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27979&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27979&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27979&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27979&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27979&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27979&r=float