Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25531 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72523 invoked by uid 1010); 5 Sep 2006 15:51:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 72508 invoked from network); 5 Sep 2006 15:51:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2006 15:51:31 -0000 Authentication-Results: pb1.pair.com header.from=mp@webfactory.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mp@webfactory.de; spf=permerror; 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:46999] helo=wfserver02.wf-ppr.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 45/EA-14109-10D9DF44 for ; Tue, 05 Sep 2006 11:51:31 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Tue, 5 Sep 2006 17:51:26 +0200 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message-ID: <00A2E2156BEE8446A81C8881AE117F193C37A9@companyweb> X-MS-Has-Attach: X-MimeOLE: Produced By Microsoft Exchange V6.5 X-MS-TNEF-Correlator: Thread-Topic: file_exists() and safe_mode Thread-Index: AcbRAB6s+Yxaq+EkRJyusUfk1dIITAAAnaDQ To: "Lukas Kahwe Smith" Cc: "internals" Subject: AW: file_exists() and safe_mode From: mp@webfactory.de ("Matthias Pigulla") > i dont think this is a recent change. i think its only an=20 > oversite in the documentation. mp@appr:~$ php ./bug.php=20 5.1.4 string(0) "" bool(true) bool(true) mp@appr:~$ php -d safe_mode=3D1 ./bug.php=20 5.1.4 string(1) "1" bool(true) bool(true) With 5.1.4 both file_exists() and is_readable() ignored safe_mode restrictions, so the docs were wrong for file_exists() (which is what bug #37987 was about) and correct for is_readable(). Both functions changed their behaviour, now either this behaviour or is_readable() docs are wrong. mp.