Bug #11651: Need something like a __LINE__ constant to show the line in *main* file.
| From: | dron007 at yahoo dot com | Date: | Mon, 25 Jun 2001 08:34:27 +0000 |
| Subject: | Bug #11651: Need something like a __LINE__ constant to show the line in *main* file. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-57908@lists.php.net to get a copy of this message | ||
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.
file1:
include ("file2");
some_function();
file2:
function some_function() {
...
}
--
Edit Bug report at: http://bugs.php.net/?id=11651&edit=1