PHP 4.0 Bug #3635: wrong error message for errors in auto prepended include files
| From: | kk at netuse dot de | Date: | Sat, 26 Feb 2000 17:48:33 +0000 |
| Subject: | PHP 4.0 Bug #3635: wrong error message for errors in auto prepended include files | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-16052@lists.php.net to get a copy of this message | ||
From: kk@netuse.de
Operating system: Linux valiant 2.2.13 #1 Mon Nov 8 15:37:25 CET 1999 i686 unknown
PHP version: 4.0 Latest CVS (26/02/2000)
PHP Bug Type: Scripting Engine problem
Bug description: wrong error message for errors in auto prepended include files
I have a file named "prepend.php3" which is being auto_prepended to
all my pages. That file contains a number of require() statements which
contains the actual code that is to be auto_prepended. One of these files
contains a syntax error (a string constant with a dynamic initialization
as in
class Statbox {
var $statcache = "$DOCUMENT_ROOT/cache/statbox.html";
...
}
which is illegal in PHP4).
When statbox.inc is required from the main page manually, I get a proper
error message
Parse error: parse error in statbox.inc on line 4
When statbox.inc is required from the auto_prepended file
prepend.php3, I get
Fatal error: Failed opening required 'statbox.inc'
(include_path='/home/kris/www/test.koehntopp.de/local_php:/home/kris/www/test.koehntopp.de/php')
in
/home/kris/www/test.koehntopp.de/local_php/prepend.php3 on line 32
which is a very different error message and misleading.