From: simon dot nuttall at gmail dot com Operating system: Debian Linux www 2.6.26.2 PHP version: 5.3.1 PHP Bug Type: SPL related Bug description: Storing many SPLFixedArray in an array crashes
Description: ------------ The script generates a segmentation fault when $count > 9992. I have tried it on three machines, and on one the problem only occurs when $count > 9995. Reproduce code: --------------- $count = 9993; $cache = array(); for($i = 0; $i < $count ; $i++) { $cache[$i] = new SplFixedArray(1); } echo 'Cache count: ' . count($cache); Expected result: ---------------- Cache count: 9993 Actual result: -------------- [Tue Dec 15 13:42:57 2009] [notice] child pid 10685 exit signal Segmentation fault (11) -- Edit bug report at http://bugs.php.net/?id=50481&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50481&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50481&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50481&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50481&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50481&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50481&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50481&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50481&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50481&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50481&r=support Expected behavior: http://bugs.php.net/fix.php?id=50481&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50481&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50481&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50481&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50481&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50481&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50481&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50481&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50481&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50481&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50481&r=mysqlcfg