Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9873 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26636 invoked by uid 1010); 16 May 2004 14:36:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26612 invoked from network); 16 May 2004 14:36:24 -0000 Received: from unknown (HELO mx.thebrainroom.net) (65.200.24.98) by pb1.pair.com with SMTP; 16 May 2004 14:36:24 -0000 Received: by mx.thebrainroom.net (Postfix, from userid 517) id E8DB214880C1; Sun, 16 May 2004 07:36:22 -0700 (PDT) Received: from tron (obsidian.thebrainroom.net [82.133.1.142]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx.thebrainroom.net (Postfix) with ESMTP id 6744614880BF; Sun, 16 May 2004 07:36:20 -0700 (PDT) To: , Date: Sun, 16 May 2004 15:36:19 +0100 Organization: The Brain Room Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 In-Reply-To: <200405161622.16334.phplist@s-mueller.ch> Thread-Index: AcQ7UXLwMElKmjtLRl+dIt1U2+0PFQAAZu+w Message-ID: X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on jc.thebrainroom.net X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63 X-Spam-Level: X-TBR-Filter: Virus scanned and defanged Subject: RE: [PHP-DEV] Filename of the currently executed php script From: wez@thebrainroom.com ("Wez Furlong") References: <200405161622.16334.phplist@s-mueller.ch> >From zend_error(): error_filename = zend_get_executed_filename(TSRMLS_C); error_lineno = zend_get_executed_lineno(TSRMLS_C); --Wez. > -----Original Message----- > From: Stefan Mueller [mailto:phplist@s-mueller.ch] > Sent: 16 May 2004 15:22 > To: internals@lists.php.net > Subject: [PHP-DEV] Filename of the currently executed php script > > Hi > > I'm a greenhorn tying to add some code to > /ext/standard/mail.c php_mail(...), > but I have trouble to get the filename of the php script that > triggers the > php_mail(...) call. compiler_globals.compiled_filename > doesn't work. It's > always NULL. > Any ideas how i could get this filename? > > thanks ! > > Stefan > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >