|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-06-10 19:58 UTC] sivev at hotmail dot com
First, sorry, i have a very bad English.
This script:
$myarr = array(array(1,2,3), array(1,2,3), array(1,2,3));
array_walk(&$myarr, "myfunc");
function myfunc(&$value, $key) {
global $myarr;
$myarr=null;
}
causes Apache to crash. I'm using Apache 1.3.19 and PHP 4.0.4pl1 under W98.
Is a stupid script, but it's not the real script. Is the shorter script that reproduces the problem that i can send you.
thanks,
sive
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 23:00:01 2025 UTC |
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