Re: simple "while" loop terminated for no reason

From: Date: Mon, 26 May 2003 00:05:44 +0000
Subject: Re: simple "while" loop terminated for no reason
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148935@lists.php.net to get a copy of this message
On Mon, 26 May 2003 05:12:14 +0800, you wrote: >hi, i'm using php ver 4.3.1 in winXP o/s. > >my html output always halted halfway from execution. i find out >that it has got to do with the while loop. > >for simplicity, i created a test php file that will execute a loop for >1000 times and print out some strings. however, even before it >reach 1000, it stops. there is no error given. Odd... works ok here. Hmm... does it always halt on the same iteration? If you have it pause inside the loop, does it halt on a smaller number? What if you remove the string constant from the print line? Only go to 500 instead of 1000? I'm just thinking out loud, but maybe you're running into the maximum execution time for your script? Odd that it wouldn't report an error in that case... try turning the error reporting up to waaaaay paranoid (error_reporting (E_ALL);) and see what it offers you.

« previous php.general (#148935) next »