|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-12-26 07:49 UTC] tal@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 04:00:01 2025 UTC |
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