Re: Getting Script Name and Line Number From Extension
| From: | Jay Smith | Date: | Mon, 08 Sep 2003 19:25:56 +0000 |
| Subject: | Re: Getting Script Name and Line Number From Extension | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4434@lists.php.net to get a copy of this message | ||
Bruce Bailey wrote:
> Hi
>
> I would like to access the PHP script name and line number from within my
> C extension. Is there a function that I can call that will give me this
> information? I know I can call 'zend_error', but that really doesn't do
> what I want.
>
> Thanks in advance,
>
> Bruce
>
Try zend_get_(compiled|executed)_filename(TSRMLS_C) and
zend_get_(compiled|executed)_lineno(TSRMLS_C).
J