ID: 21194 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: windows xp PHP Version: 4.2.3 New Comment:
You can use the __LINE__ constant. Previous Comments: ------------------------------------------------------------------------ [2002-12-26 07:40:14] [EMAIL PROTECTED] Hi, bug tracking can be very difficult when you dont know where the problem is. i propose that you create a special constant or variable like: $_BUG_ROWNUMBER and this variable (or const) will be given (at execution time) a value that represents the position OF the variable IN the php document. for example, here the output from the die contstruct would be "error on line 3" <? echo "blabla"; mysql_query("wrong query") or die ("error on line ".$_BUG_ROWNUMBER); ?> as you can see this would be very useful when debugging as you otherwise have to change every error message so that they will become a unique message and that you can be sure on which line it is.. thanks for your time, Osman Darcan ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21194&edit=1