PHP 4.0 Bug #4993: warning message line number misreported

From: Date: Mon, 12 Jun 2000 19:31:29 +0000
Subject: PHP 4.0 Bug #4993: warning message line number misreported
Groups: php.dev 
Request: Send a blank email to php-dev+get-21152@lists.php.net to get a copy of this message
From: joeasdf@hotmail.com Operating system: Win32 PHP version: 4.0.0 Release PHP Bug Type: Scripting Engine problem Bug description: warning message line number misreported It seems that PHP4 is treating include files strangely. If I have a file called a.php (100 lines) and it requires b.php (100 lines) on line 15, and I have an error in a.php at line 65, the engine will report an error in b.php on line 150, which doesn't exist. This makes it VERY HARD to find bugs in your code if you're including different files for object use. A big mess up, I think... The only way to track down errors is to do the following: Start with the first file you called. Count the number of lines until the first include/require. From now on, the engine will think that the file is the include file, period. Count the number of lines until the next include (if any)... etc. It's a pain in the a$$.

« previous php.dev (#21152) next »