Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49891 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59552 invoked from network); 8 Oct 2010 11:19:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Oct 2010 11:19:06 -0000 X-Host-Fingerprint: 95.31.13.88 xdmitri2.static.corbina.ru Received: from [95.31.13.88] ([95.31.13.88:26275] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 45/05-31204-82EFEAC4 for ; Fri, 08 Oct 2010 07:19:05 -0400 Message-ID: <45.05.31204.82EFEAC4@pb1.pair.com> To: internals@lists.php.net References: <73.09.01054.7EC0EAC4@pb1.pair.com> <2C.13.31204.0D8EEAC4@pb1.pair.com> <1286532432.2459.54.camel@guybrush> Date: Fri, 8 Oct 2010 15:19:02 +0400 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-RFC2646: Format=Flowed; Original X-Posted-By: 95.31.13.88 Subject: Re: [PHP-DEV] stat functions do each path component? From: dmda@yandex.ru ("jvlad") >> Rasmus meant (include|requrie)_once, where the same files should be >> caught >> indeed. >> As of file_exists(), why would it need realpath's logic at all? > > In case open_basedir is enabled we have to do some more verifications, > as we have to resolve the true base. > > johannes > > Good point, thanks. I think it makes sense to add a check for open_basedir value and avoid such lookups if it is not set. In many cases this setting is empty, right? -jv