Re: PHP 4.0 Bug #5941 Updated: Bug in the require() function ?
| From: | Nico Blanke | Date: | Thu, 03 Aug 2000 11:54:15 +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-27543@lists.php.net to get a copy of this message | ||
Am Don, 03 Aug 2000 schrieben Sie:
> ID: 5941
> Updated by: stas
> Reported By: support@masterbyte.de
> Status: Feedback
> Bug Type: Other
> Assigned To:
> Comments:
>
> Please provide _valid_ reproducing script for this behaviour.
>
> Full Bug description available at: http://bugs.php.net/?id=5941
The 2 scripts i sent are valid. I will send them to you again.
The Point is, if there is an error in script.php, the parser will not say
'Error in script.php line x', it will say 'Error in include.php line y' , where
y is a line number that does not exist.
<? require('./include.php'); $x = 1; $y = 2 $z = 3; ?> <? $a = 1; $b = 1; $c = 1; $d = 1; $e = 1; $f = 1; $g = 1; $h = 1; $i = 1; $j = 1; ?>
<? require('./include.php'); $x = 1; $y = 2 $z = 3; ?> <? $a = 1; $b = 1; $c = 1; $d = 1; $e = 1; $f = 1; $g = 1; $h = 1; $i = 1; $j = 1; ?>