#21194 [Opn->Bgs]: compiler time constant $_BUG_ROWNUMBER
| From: | tal@php.net | Date: | Thu, 26 Dec 2002 13:49:11 +0000 |
| Subject: | #21194 [Opn->Bgs]: compiler time constant $_BUG_ROWNUMBER | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-28400@lists.php.net to get a copy of this message | ||
ID: 21194
Updated by: tal@php.net
Reported By: odarcan@hotmail.com
-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] odarcan@hotmail.com
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