Re: PHP 4.0 Bug #5941 Updated: Bug in the require() function ?

From: Date: Thu, 03 Aug 2000 10:18:46 +0000
Subject: Re: PHP 4.0 Bug #5941 Updated: Bug in the require() function ?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-27532@lists.php.net to get a copy of this message
Am Don, 03 Aug 2000 schrieben Sie: > ID: 5941 > Updated by: waldschrott > Reported By: support@masterbyte.de > Status: Feedback > Bug Type: Other > Assigned To: > Comments: > > Please provide a reduced code fragment (<15 lines) producing this behaviour. > > Full Bug description available at: http://bugs.php.net/?id=5941 Parse error: parse error in D:\www\Petra\test\script.php on line 5 ------------------ INCLUDE.PHP <?php $a = 1; $b = 1; $c = 1; $d = 1; $e = 1; $f = 1; $g = 1; $h = 1; $i = 1; $j = 1; php?> -------------------- EOF -------------SCRIPT.PHP <?php require('./include.php'); $x = 1; $y = 2 $z = 3; php?> ----------------EOF As you will notice, there is a missing ; in the code above. If I run the script, i get the error Parse error: parse error in ./include.php on line 18 If i change require() to include(), the CORRECT error message appears : Parse error: parse error in D:\www\Petra\test\script.php on line 5 Best regards, Nico Blanke .

« previous php.dev (#27532) next »