note 69803 added to function.die
| From: | zmorris at mac dot com | Date: | Thu, 21 Sep 2006 19:46:11 +0000 |
| Subject: | note 69803 added to function.die | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-117390@lists.php.net to get a copy of this message | ||
Hi, I posted a new trace( 'your message' ) function that doesn't require you to pass
__FILE_ and __LINE__ at:
http://www.php.net/debug_backtrace#69786
It works by using php's stack trace function, since php can't use macros for appending
__FILE_ and __LINE__ automatically like in c++. You can simply add die() to the bottom of trace()
if you want execution to stop.
----
Server IP: 66.163.161.117
Probable Submitter: 71.221.131.120
----
Manual Page -- http://www.php.net/manual/en/function.die.php
Edit -- https://master.php.net/note/edit/69803
Del: integrated -- https://master.php.net/note/delete/69803/integrated
Del: useless -- https://master.php.net/note/delete/69803/useless
Del: bad code -- https://master.php.net/note/delete/69803/bad+code
Del: spam -- https://master.php.net/note/delete/69803/spam
Del: non-english -- https://master.php.net/note/delete/69803/non-english
Del: in docs -- https://master.php.net/note/delete/69803/in+docs
Del: other reasons-- https://master.php.net/note/delete/69803
Reject -- https://master.php.net/note/reject/69803
Search -- https://master.php.net/manage/user-notes.php