[PHP-DEV] Bug #11651: Need something like a __LINE__ constant to show the line in *main* file. From: dron007 <email protected>
Date: 06/25/01

From: dron007 <email protected>
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

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>