Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22320 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20785 invoked by uid 1010); 10 Mar 2006 06:57:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 20770 invoked from network); 10 Mar 2006 06:57:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Mar 2006 06:57:51 -0000 X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.4/2.6 Received: from ([204.11.219.139:43218] helo=colo.lerdorf.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 75/C9-27106-F6321144 for ; Fri, 10 Mar 2006 01:57:51 -0500 Received: from [192.168.200.106] (c-24-6-5-134.hsd1.ca.comcast.net [24.6.5.134]) (authenticated bits=0) by colo.lerdorf.com (8.13.5/8.13.5/Debian-3) with ESMTP id k2A6vehY019034; Thu, 9 Mar 2006 22:57:40 -0800 Message-ID: <44112364.7070607@lerdorf.com> Date: Thu, 09 Mar 2006 22:57:40 -0800 User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: Rasmus Lerdorf CC: Andi Gutmans , "Brian J. France" , internals@lists.php.net References: <0FF5C589-6436-45E0-8626-F0B9944046ED@firehawksystems.com> <7.0.1.0.2.20060309222503.08a04930@zend.com> <44111D29.8030407@lerdorf.com> In-Reply-To: <44111D29.8030407@lerdorf.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] primary file realpath change From: rasmus@lerdorf.com (Rasmus Lerdorf) Rasmus Lerdorf wrote: > Andi Gutmans wrote: >> Are you sure VCWD_REALPATH doesn't use the realpath cache? It did last >> time I checked and I think is still the right method to use there... > > quite > > #define VCWD_REALPATH(path, real_path) realpath(path, real_path) By the way, I agree that expand_filepath() is not the right fix here since the first thing it does is a getcwd. We have just done a chdir and haven't executed any script yet so we know the cwd. Feed that directly to virtual_file_ex() there perhaps? I haven't really dug into it. -Rasmus