#25713 [Opn->WFx]: endless self call loop

From: Date: Wed, 01 Oct 2003 23:34:14 +0000
Subject: #25713 [Opn->WFx]: endless self call loop
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-48401@lists.php.net to get a copy of this message
ID: 25713 Updated by: sniper@php.net Reported By: kevin at netflex dot nl -Status: Open +Status: Wont fix Bug Type: Reproducible crash Operating System: Windows/Netware and maybe more PHP Version: 4.3.3 New Comment: We know this, now leave this closed. Previous Comments: ------------------------------------------------------------------------ [2003-10-01 16:54:09] kevin at netflex dot nl script to crash the server: crash(); function crash() { crash(); } tested with: * PHP 5.0.0b2-dev (snapshot: php5-win32-200309251030.zip) on Windows (Apache2 2.0.47 and Windows 2003) * PHP 4.3.3 on Windows (Apache2 2.0.47 and Windows 2003) * PHP 4.2.3 on Netware (Apache2 2.0.47 and Netware 6.5) ------------------------------------------------------------------------ [2003-10-01 13:34:40] moriyoshi@php.net Anyway, that's expected behaviour as stated in other bug reports. ------------------------------------------------------------------------ [2003-10-01 13:23:07] moriyoshi@php.net You should first try hard to crash it with that tiny script. If it really was to go wrong, then reopen this bug to let us know what did actually happen on your server :) ------------------------------------------------------------------------ [2003-10-01 11:49:00] kevin at netflex dot nl i know, (mistake from me ;-). But now the problem is that i can crash the server if i want by making an endless loop (with calls). ------------------------------------------------------------------------ [2003-10-01 11:36:57] moriyoshi@php.net function crash(&$test) { if ($test < 10) crash($test); $test++; } There's no chance $test is incremented. So no matter how the variable is passed to the function, it will definitely go into an infinite loop and end up eating up all the stack area which really causes segmentation fault. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/25713 -- Edit this bug report at http://bugs.php.net/?id=25713&edit=1

« previous php.bugs (#48401) next »