From: [EMAIL PROTECTED]
Operating system: windows xp
PHP version: 4.2.3
PHP Bug Type: Feature/Change Request
Bug description: compiler time constant $_BUG_ROWNUMBER
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 bug report at http://bugs.php.net/?id=21194&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21194&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21194&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21194&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21194&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21194&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21194&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21194&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21194&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21194&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21194&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21194&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21194&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21194&r=isapi