Re: Bug #11651: Need something like a __LINE__ constant to show the line in *main* file.

From: Date: Mon, 25 Jun 2001 12:13:18 +0000
Subject: Re: Bug #11651: Need something like a __LINE__ constant to show the line in *main* file.
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-57923@lists.php.net to get a copy of this message
At 08:34 25-6-2001 +0000, dron007@yahoo.com wrote:
From:             dron007@yahoo.com
Operating system: Linux 5.2
PHP version:      4.0.5
PHP Bug Type:     Feature/Change Request
Bug description:  Need something like a __LINE__ constant to show the line in *main* file.
When some error happens in function within included file it is sometimes very hard to find from which line in the main script (containing include function) this function was called. It would be much better if there were a way to get the number of the line within the main script file which is being parsed.
__FILE__
file1: include ("file2"); some_function(); file2: function some_function() { ... } -- Edit Bug report at: http://bugs.php.net/?id=11651&edit=1 -- 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


« previous php.dev (#57923) next »