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

From: Date: Thu, 03 Aug 2000 10:45:19 +0000
Subject: PHP 4.0 Bug #5941 Updated: Bug in the require() function ?
Groups: php.dev 
Request: Send a blank email to php-dev+get-27533@lists.php.net to get a copy of this message
ID: 5941 User Update by: support@masterbyte.de Status: Feedback Bug Type: Other Description: Bug in the require() function ? ------------------ 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 . Full Bug description available at: http://bugs.php.net/?id=5941

« previous php.dev (#27533) next »