|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-10-20 22:52 UTC] stv at seznam dot cz
[2004-12-13 15:27 UTC] jr at terragate dot net
[2005-01-13 01:10 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 23 21:00:01 2025 UTC |
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