ID: 50335
Updated by: [email protected]
Reported By: ryan at ongawari dot com
-Status: Open
+Status: Feedback
Bug Type: Arrays related
Operating System: Win 2008
PHP Version: 5.3.1
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
Previous Comments:
------------------------------------------------------------------------
[2009-11-30 15:11:27] ryan at ongawari dot com
Description:
------------
array_unshift can only run 1965 times
Reproduce code:
---------------
for ($i=0;$i<$numrows;++$i) {
array_unshift($dataarray[$i],($i+1));
}
Expected result:
----------------
To prepend the 2d array with a column that represents the row number of
the 2D array
Actual result:
--------------
Apache crashes at line 1965 (when $i=1965)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50335&edit=1