#21194 [NEW]: compiler time constant $_BUG_ROWNUMBER
| From: | odarcan at hotmail dot com | Date: | Thu, 26 Dec 2002 13:40:15 +0000 |
| Subject: | #21194 [NEW]: compiler time constant $_BUG_ROWNUMBER | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-28397@lists.php.net to get a copy of this message | ||
From: odarcan@hotmail.com
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