Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25529 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69367 invoked by uid 1010); 5 Sep 2006 15:45:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 69352 invoked from network); 5 Sep 2006 15:45:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2006 15:45:08 -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:46921] helo=wfserver02.wf-ppr.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FA/5A-14109-28B9DF44 for ; Tue, 05 Sep 2006 11:45:08 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Tue, 5 Sep 2006 17:45:04 +0200 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message-ID: <00A2E2156BEE8446A81C8881AE117F193C37A7@companyweb> X-MS-Has-Attach: X-MimeOLE: Produced By Microsoft Exchange V6.5 X-MS-TNEF-Correlator: Thread-Topic: [PHP-DEV] file_exists() and safe_mode Thread-Index: AcbRAGXJ5T//gdE9SwG/133F9mxU/AAAQt8g To: "Ilia Alshanetsky" Cc: "internals" Subject: AW: [PHP-DEV] file_exists() and safe_mode From: mp@webfactory.de ("Matthias Pigulla") > I think the current behavior solves made old bug reports,=20 > where by people used is_readable() to see if they could read=20 > from a file, only to have the operation file due to=20 > safe_mode/open_basedir restrictions. Taking the check away=20 > would also mean it would be possible to "explore" file file=20 > system bypassing PHP's file system restrictions. =20 So this is a documentation bug and there is no way to check beforehand whether an include($filepath) will succeed or not when safe_mode is on? Kind regards mp.