Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4434 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21634 invoked by uid 1010); 8 Sep 2003 19:25:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 21609 invoked by uid 1007); 8 Sep 2003 19:25:58 -0000 Message-ID: <20030908192558.21608.qmail@pb1.pair.com> To: internals@lists.php.net Reply-To: jay@php.net Mail-Copies-To: jay@php.net Date: Mon, 08 Sep 2003 15:25:56 -0400 References: Lines: 18 User-Agent: KNode/0.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Posted-By: 216.94.11.234 Subject: Re: Getting Script Name and Line Number From Extension From: jay@php.net (Jay Smith) 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