Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39792 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87401 invoked from network); 9 Aug 2008 10:31:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Aug 2008 10:31:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.163 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 212.25.124.163 il-gw1.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.163] ([212.25.124.163:21505] helo=il-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/FA-02575-3F17D984 for ; Sat, 09 Aug 2008 06:31:17 -0400 Received: from [10.1.10.26] ([10.1.10.26]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Sat, 9 Aug 2008 13:32:00 +0300 Message-ID: <489D71E6.7030003@zend.com> Date: Sat, 09 Aug 2008 14:31:02 +0400 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Hannes Magnusson CC: Arnaud Le Blanc , internals@lists.php.net, Rasmus Lerdorf , Felipe Pena , Christian Stocker , Andi Gutmans , Stanislav Malyshev References: <4899C4B4.3060902@liip.ch> <1218138548.5346.3.camel@felipe> <489B5285.1070000@lerdorf.com> <200808072237.01841.arnaud.lb@gmail.com> <7f3ed2c30808080011l3c62d416k7fd9b4dd455df99e@mail.gmail.com> <489C6BBA.8030101@zend.com> <7f3ed2c30808090318u7c4e99can7ada79c2c064773c@mail.gmail.com> In-Reply-To: <7f3ed2c30808090318u7c4e99can7ada79c2c064773c@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Aug 2008 10:32:01.0454 (UTC) FILETIME=[28B42CE0:01C8FA0B] Subject: Re: [PHP-DEV] include bug in 5.3 From: dmitry@zend.com (Dmitry Stogov) Where is it documented? The realpath() implementation conforming to 4.4BSD and POSIX.1-2001 requires file existence. With the patch it'll work in the same standard way on all systems. Thanks. Dmitry. Hannes Magnusson wrote: > On Fri, Aug 8, 2008 at 17:52, Dmitry Stogov wrote: >> Hi, >> >> The attached patch is going to fix the problem. >> It implements its own realpath() function, so we won't depend on system >> anymore. It also improve realpath cache usage by caching intermediate >> results. >> >> I tested it on Linux and Windows only and it seems to work without >> problems. It breaks one test related to clearstatcache() function, but >> this break is expected. >> >> Could you please test it. >> Does it really fix the bug on FreeBSD? > > Yup. But it introduces a new one. > realpath() no longer works as documented, now requiring all the > components to exist. > > -Hannes