Re: PHP 4.0 Bug #4993: warning message line number misreported

From: Date: Mon, 12 Jun 2000 21:21:32 +0000
Subject: Re: PHP 4.0 Bug #4993: warning message line number misreported
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-21154@lists.php.net to get a copy of this message
This shouldn't be the case. Erronous line numbers should only occur in eval() statements. If you experience this problem outside the scope of eval(), please submit a small reproducing test case. We'll try to handle the eval() issue in the future. Zeev At 21:31 12/06/2000, joeasdf@hotmail.com wrote:
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$$. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
-- Zeev Suraski <zeev@zend.com> http://www.zend.com/

« previous php.dev (#21154) next »