From: jaakkos at mbnet dot fi
Operating system: Windows XP
PHP version: 5.0.2
PHP Bug Type: Reproducible crash
Bug description: Apache crashes when calling array_walk_recursive twice.
Description:
------------
Apache server crashes when array_walk_recursive is called twice. Tested on
Apache 2.0.52 and 1.3.29 (Windows XP).
Reproduce code:
---------------
//Just for testing +
$_POST['ab'] = 'cd';
$_GET['ef'] = 'gh';
//Just for testing -
function cleanup(&$value,$key){
if (is_string($value)){
$value = trim(strip_tags($value));
get_magic_quotes_gpc() && $value = stripslashes($value);
}
}
array_walk_recursive($_POST,'cleanup');
array_walk_recursive($_GET,'cleanup');
Expected result:
----------------
Remove tags and slashes from $_POST and $_GET hashes.
Actual result:
--------------
szAppName : Apache.exe szAppVer : 2.0.52.0 szModName : unknown
szModVer : 0.0.0.0 offset : 00000000
--
Edit bug report at http://bugs.php.net/?id=30495&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30495&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30495&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30495&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30495&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30495&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30495&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30495&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30495&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30495&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30495&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30495&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30495&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30495&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30495&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30495&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30495&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30495&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30495&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30495&r=mysqlcfg