#29935 [Opn->Fbk]: array_filter crashes Apache 2
| From: | derick@php.net | Date: | Thu, 02 Sep 2004 06:18:20 +0000 |
| Subject: | #29935 [Opn->Fbk]: array_filter crashes Apache 2 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-65607@lists.php.net to get a copy of this message | ||
ID: 29935
Updated by: derick@php.net
Reported By: webmaster at martialartsmovies dot net
-Status: Open
+Status: Feedback
Bug Type: Arrays related
Operating System: Windows XP
PHP Version: 5.0.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
Your code works fine for me, please try a snapshot.
Previous Comments:
------------------------------------------------------------------------
[2004-09-01 20:10:27] webmaster at martialartsmovies dot net
Description:
------------
I have PHP 5.0.1 installed together with the latest stable Apache 2 on
Windows XP SP2. I used the example on the array_filter page on php.net
an all I got was a window telling me that apache caused a problem and
it needed to reboot.
Reproduce code:
---------------
<?php
function odd($var)
{
return($var % 2 == 1);
}
function even($var)
{
return($var % 2 == 0);
}
$array1 = array("a"=>1, "b"=>2, "c"=>3, "d"=>4,
"e"=>5);
$array2 = array(6, 7, 8, 9, 10, 11, 12);
echo "Odd :\n";
print_r(array_filter($array1, "odd"));
echo "Even:\n";
print_r(array_filter($array2, "even"));
?>
Expected result:
----------------
the array_filter function applied to the 2 arrays
Actual result:
--------------
apache 2 crashed.
error.log:
[Wed Sep 01 19:47:14 2004] [notice] Child 2412: Child process is
running
[Wed Sep 01 19:47:14 2004] [notice] Child 2412: Acquired the start
mutex.
[Wed Sep 01 19:47:14 2004] [notice] Child 2412: Starting 250 worker
threads.
[Wed Sep 01 19:50:15 2004] [notice] Parent: child process exited with
status 3221225477 -- Restarting.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29935&edit=1