Re: Is there way how to get line number from which function was called ???
| From: | elias | Date: | Thu, 29 Mar 2001 01:11:25 +0000 |
| Subject: | Re: Is there way how to get line number from which function was called ??? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-45902@lists.php.net to get a copy of this message | ||
Thanks.
That was an answer to my post with this subject: "[PHP] Caller's Line
number?"
Can you answer too my last question in that post?
""Neil Kimber"" <neil.kimber@flytxt.com> wrote in message
news:OAEEKIKEIHKOPGHNDHJJEEEFCOAA.neil.kimber@flytxt.com...
> No.
> You could pass the constant __LINE__ to your function, but I assume that
you
> want this feature to be generically available within all functions. If you
> really want to be able to track your call-stack then you'd be better off
> using a development environment like the Zend IDE and debugger.
> Alternatively you could request a function to the PHP developers mailing
> list that would return an array containing the current call-stack.
>
> You can register your own error handler and assert handler - these guys
> receive the calling LINE as a parameter.
>
> -----Original Message-----
> From: mmlynarcik@vodnik.charmed.sk
> [mailto:mmlynarcik@vodnik.charmed.sk]On Behalf Of Milan Mlynarcik
> Sent: 28 March 2001 14:43
> To: php-general@lists.php.net
> Subject: [PHP] Is there way how to get line number from which function
> was called ???
>
>
> Is there way how to get line number from which function was called ???
>
> Milan Mlynarcik
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>