|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-10-05 12:37 UTC] rasmus@php.net
[2001-10-25 06:31 UTC] sander@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 11:00:02 2025 UTC |
Hey there i just managed something that i never accomplished beforei kill a httpd process from PHP, i run the following code <? $slen=strlen($enc); for ($i=0;$i<$slen;$i=$i+2) { $swap=$enc[$i]; $enc[$i]=$enc[$i+1]; $enc[$i+1]=$swap; } ?> $enc is a string and has an even length This silly lines of code make the apache child process crash, if i change it to <? $slen=strlen($enc); for ($i=0;$i<$slen;$i=$i+2) { $swap=$enc[$i]; $swap2=$enc[$i+1]; $enc[$i]=$swap2; $enc[$i+1]=$swap; } ?> it works well. what the hell is happening here? i run php 4.04pl1 as apache module under linux.