Getting Script Name and Line Number From Extension

php.internals

Bruce Bailey

22 years ago
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 _________________________________________________________________ Fast, faster, fastest: Upgrade to Cable or DSL today! https://broadband.msn.com

J Smith

22 years ago
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