Bug #677: Infinite looping of for when include used in body of for

From: Date: Fri, 21 Aug 1998 12:57:08 +0000
Subject: Bug #677: Infinite looping of for when include used in body of for
Groups: php.dev 
Request: Send a blank email to php-dev+get-406@lists.php.net to get a copy of this message
From: xkosj06@vse.cz Operating system: Win NT 4.0 Workstation PHP version: 3.0.3 PHP Bug Type: Reproduceable crash Bug description: I have written script, which should include somefile.txt for example ten times: for($i=0;$i<10;$i++) include "somefile.txt"; When I have ran this script, I have obtained 10 warnings, stating that PHP can not include somefile.txt. After that, PHP starts including somefile.txt in infinite loop. I have tryed same code using alternate for syntax: for($i=0;$i<10;$i++): include "somefile.txt"; endfor; And everything worked well. Everything worked also if I rewrite this piece of code to use while loop. -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#406) next »