Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39865 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15247 invoked from network); 12 Aug 2008 08:30:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Aug 2008 08:30:25 -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:50895] helo=il-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CD/F6-04075-E1A41A84 for ; Tue, 12 Aug 2008 04:30:24 -0400 Received: from [10.1.10.18] ([10.1.10.18]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 12 Aug 2008 11:31:10 +0300 Message-ID: <48A14A11.6060709@zend.com> Date: Tue, 12 Aug 2008 12:30:09 +0400 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Stefan Esser CC: Rasmus Lerdorf , Hannes Magnusson , Greg Beaver , internals@lists.php.net 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> <489D811D.6090401@sektioneins.de> <489E3623.50008@lerdorf.com> <489FD934.8090905@zend.com> <48A0B1FB.6080604@chiaraquartet.net> <7f3ed2c30808120021n438be34crf83f24ca169f8e3a@mail.gmail.com> <48A14240.1020600@lerdorf.com> <48A144FE.407@zend.com> <48A1466C.3060907@sektioneins.de> In-Reply-To: <48A1466C.3060907@sektioneins.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Aug 2008 08:31:10.0867 (UTC) FILETIME=[C641A630:01C8FC55] Subject: Re: [PHP-DEV] include bug in 5.3 From: dmitry@zend.com (Dmitry Stogov) realpath(__FILE__ . "/..") doesn't work (returns false) on php-5.2 Linux, however include(__FILE__ . "/../some.php") worked with 5.2. Thanks. Dmitry. Stefan Esser wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Dmitry, > >> __FILE__. "/../../foobar.php" probably could work on Windows/BSD only, >> but won't work anymore. > > this works on Linux and everywhere where GLIBC is used, because GLIBC > realpath() supports this nonsense. > > Stefan > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.8 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAkihRmwACgkQSuF5XhWr2nhv5gCgsRSUMOtc8/PcsugrL3xTNar0 > iYIAoIVA4fO5dWwRfxIzHpYfhNFNNuA4 > =tAba > -----END PGP SIGNATURE-----