Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25527 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56888 invoked by uid 1010); 5 Sep 2006 15:18:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 56872 invoked from network); 5 Sep 2006 15:18:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2006 15:18:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=mp@webfactory.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mp@webfactory.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain webfactory.de from 195.227.108.51 cause and error) X-PHP-List-Original-Sender: mp@webfactory.de X-Host-Fingerprint: 195.227.108.51 wfserver02.wf-ppr.de Windows 2000 SP2+, XP SP1 (seldom 98 4.10.2222) Received: from [195.227.108.51] ([195.227.108.51:46391] helo=wfserver02.wf-ppr.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/77-14109-C909DF44 for ; Tue, 05 Sep 2006 10:58:38 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 5 Sep 2006 16:58:33 +0200 Message-ID: <00A2E2156BEE8446A81C8881AE117F193C37A3@companyweb> X-MimeOLE: Produced By Microsoft Exchange V6.5 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: file_exists() and safe_mode Thread-Index: AcbQ+8GfjvRXQ2IsS+K43Al83dCAqw== To: "internals" Subject: file_exists() and safe_mode From: mp@webfactory.de ("Matthias Pigulla") Hi all, I'm afraid that recent changes in filestat.c [1] that were meant to fix a bug [2] with file_exists() also altered the behaviour of is_readable(). According to the docs [3] [4], is_readable should *not* take safe_mode limitations into account, whereas file_exists should do. mp@dev:~$ php bug.php 5.1.6 string(0) "" bool(true) bool(true) mp@dev:~$ php -d safe_mode=3D1 bug.php =20 5.1.6 string(1) "1" bool(false) bool(false) Is this intended behaviour? If not, I'd be glad to file it as a bug. Kind regards, mp. [1] http://cvs.php.net/viewvc.cgi/php-src/ext/standard/filestat.c [2] http://bugs.php.net/bug.php?id=3D37987 [3] http://de2.php.net/manual/en/function.is-readable.php [4] http://de2.php.net/manual/en/function.file-exists.php