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

From: Date: Mon, 25 Jun 2001 11:55:35 +0000
Subject: Bug #11651 Updated: 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-57921@lists.php.net to get a copy of this message
ID: 11651 User Update by: dron007@yahoo.com Status: Open Bug Type: Feature/Change Request Operating system: Linux RedHat 5.2 PHP Version: 4.0.5 Description: Need something like a __LINE__ constant to show the line in *main* file. Previous Comments: --------------------------------------------------------------------------- [2001-06-25 04:34:27] dron007@yahoo.com 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() { ... } --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=11651

« previous php.dev (#57921) next »