AW: Bug #13089 Updated: Simple Char Swapping in String crashes Webserver
| From: | Jens Kisters | Date: | Fri, 05 Oct 2001 16:46:13 +0000 |
| Subject: | AW: Bug #13089 Updated: Simple Char Swapping in String crashes Webserver | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-67362@lists.php.net to get a copy of this message | ||
yes i always had that under 4.06 under windows
> -----Ursprüngliche Nachricht-----
> Von: Bug Database [mailto:php-dev@lists.php.net]
> Gesendet: Freitag, 5. Oktober 2001 18:38
> An: j.kisters@rosomm-partner.de
> Betreff: Bug #13089 Updated: Simple Char Swapping in String crashes
> Webserver
>
>
> ID: 13089
> Updated by: rasmus
> Reported By: j.kisters@rosomm-partner.de
> Old Status: Open
> Status: Feedback
> Bug Type: Reproducible crash
> Operating System: Suse Linux 7.1
> PHP Version: 4.0.4pl1
> New Comment:
>
> Unable to reproduce this. Could you check to see if this is
> still a problem in recent versions?
>
> Previous Comments:
> ------------------------------------------------------------------------
>
> [2001-09-01 09:50:53] j.kisters@rosomm-partner.de
>
> 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.
>
> ------------------------------------------------------------------------
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
http://bugs.php.net/?id=13089&edit=2