Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33233 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70649 invoked by uid 1010); 18 Nov 2007 01:55:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 70633 invoked from network); 18 Nov 2007 01:55:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2007 01:55:36 -0000 Authentication-Results: pb1.pair.com header.from=magreenblatt@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=magreenblatt@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.146.180 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: magreenblatt@gmail.com X-Host-Fingerprint: 209.85.146.180 wa-out-1112.google.com Received: from [209.85.146.180] ([209.85.146.180:43504] helo=wa-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 79/77-14070-79B9F374 for ; Sat, 17 Nov 2007 20:55:36 -0500 Received: by wa-out-1112.google.com with SMTP id l24so1652747waf for ; Sat, 17 Nov 2007 17:55:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=cE1hzQpnRJU/6uIhL6yFSncrMDnj7KazsScHn5by0vY=; b=gJgvQrn/mysUkI75jWMq8kQWFIcTFE3c8qzD89Npu1ULjDTtYvdzpoiaFWeqYK9tcNpIvZkwPdY/UFe/SPZCEtsNQbL1/yl0cta+rNpzTohEstF0Lwdiy3SK3O3Mdz8FaWAzWZoUHZApwXQtc1hSE1JeilramN7C3L2aubjtnfw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eKrkxiHvNhyVFEt7ykMlTT3XQPg7VuS7PY4J2YjthHw6GveOE7vymllgl1fpSrNQ777vKf3eO9tu9UgLCgXO4T62ERKyEca44if4sJvvQp/VRENWPOUFvqIVJER3t5LFVkmBR3p66E16IFdbeSObk3xlyTny6pTXCcF2SOKW9n0= Received: by 10.114.137.2 with SMTP id k2mr250642wad.1195350932872; Sat, 17 Nov 2007 17:55:32 -0800 (PST) Received: by 10.115.110.10 with HTTP; Sat, 17 Nov 2007 17:55:31 -0800 (PST) Message-ID: Date: Sat, 17 Nov 2007 20:55:31 -0500 To: "Antony Dovgal" Cc: internals@lists.php.net In-Reply-To: <473EC0B2.4070606@daylessday.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <473EC0B2.4070606@daylessday.org> Subject: Re: [PHP-DEV] Getting path of currently executing file from within stream_opener handler From: magreenblatt@gmail.com ("Marshall Greenblatt") Hi Antony, On Nov 17, 2007 5:21 AM, Antony Dovgal wrote: > On 17.11.2007 11:23, Marshall Greenblatt wrote: > > Is there a method that can be used from within the stream_opener > > handler function to retrieve the path of the file currently being > > processed? > > Yes, zend_get_executed_filename(). > Though, I believe you actually need expand_filepath(), which does exactly what you said, > i.e. resolves relative paths. Thank you for your quick response. zend_get_executed_filename() allowed me to do exactly what I was looking for. > > -- > Wbr, > Antony Dovgal > Regards, Marshall