Include file must be valid

From: Date: Fri, 28 Jul 2000 17:24:53 +0000
Subject: Include file must be valid
Groups: php.general 
Request: Send a blank email to php-general+get-8821@lists.php.net to get a copy of this message
Hi there! I just migrated from PHP3 to 4. In 3 it was possible to include a file which wasn't really valid, for example with an opened while statement, which was then closed in another include file. It seems, that in PHP4 the code in an include file must be completely valid. here's an example file1.php $i = 0; while($something[$i]) { file2.php $i++; } file3.php include (file1.php); echo $i include (file2.php); --- netdienste GbR internet & multimedia Geisselstrasse 19 50823 Koeln tel: +49 221 - 932 958 2 fax: +49 221 - 932 958 5 s.biela@netdienste.de http://www.netdienste.de red:pepper - das redaktionssystem www.redpepper.netdienste.de

« previous php.general (#8821) next »