Bug #11389 Updated: array_walk causes Apache to crash
| From: | sniper@php.net | Date: | Mon, 12 Nov 2001 02:34:20 +0000 |
| Subject: | Bug #11389 Updated: array_walk causes Apache to crash | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-70191@lists.php.net to get a copy of this message | ||
ID: 11389
Updated by: sniper
Reported By: sivev@hotmail.com
Old Status: Open
Status: Critical
Bug Type: Arrays related
Operating System: W98
PHP Version: 4.0.6
New Comment:
Indeed there is something odd going on:
<?php
$myarr = array(array(1,2,3), array(1,2,3), array(1,2,3));
echo "before\n";
array_walk($myarr, "myfunc");
function myfunc(&$value, $key) {
global $myarr;
$myarr=null;
}
echo "after\n";
?>
This script only echo's "before".
--Jani
Previous Comments:
------------------------------------------------------------------------
[2001-11-11 06:49:53] sander@php.net
Reproduced with 4.2.0-dev (200111080300) on Windows 2000.
Array_walk seems to be pretty buggy. There were a few reports of crashes using array_walk, most
importantly #12776.
Reopening.
------------------------------------------------------------------------
[2001-10-21 01:44:42] sniper@php.net
I can not reproduce this with PHP 4.1.0RC1.
Could you please try the latest development build from
http://www.php4win.com/
------------------------------------------------------------------------
[2001-06-23 17:31:08] sbergmann@php.net
Reproduced with 4.0.7-dev (latest CVS, Win32)
------------------------------------------------------------------------
[2001-06-23 17:29:51] sniper@php.net
Reproduced with PHP 4.0.6
------------------------------------------------------------------------
[2001-06-10 20:32:59] sivev@hotmail.com
I have installed PHP 4.0.5. The same problem ocurrs.
sive.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=11389
Edit this bug report at http://bugs.php.net/?id=11389&edit=1