Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25532 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74454 invoked by uid 1010); 5 Sep 2006 15:54:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 74439 invoked from network); 5 Sep 2006 15:54:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2006 15:54:32 -0000 Authentication-Results: pb1.pair.com header.from=iliaal@gmail.com; sender-id=pass; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=iliaal@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.162.193 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: iliaal@gmail.com X-Host-Fingerprint: 64.233.162.193 nz-out-0102.google.com Linux 2.4/2.6 Received: from [64.233.162.193] ([64.233.162.193:29646] helo=nz-out-0102.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 32/4B-14109-5BD9DF44 for ; Tue, 05 Sep 2006 11:54:31 -0400 Received: by nz-out-0102.google.com with SMTP id 34so909875nzf for ; Tue, 05 Sep 2006 08:54:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=Bbsz5qOLn8Xbdk8Ky6vsCG6tkLg78NNFv/zKza2VZs6Fo1udeG6ajsCmaejLCP5NK/L2awje8cCXcwppm9qSDA8VtKqmnGGassLfWnQJdOqXO3ZBIvGSOzwBZR0pKeOSyKpvj5YmZKZnA7xKiWyMM93TcK93bqfVhHWnhGMhWn8= Received: by 10.65.112.5 with SMTP id p5mr7145580qbm; Tue, 05 Sep 2006 08:54:27 -0700 (PDT) Received: from ?192.168.1.6? ( [72.59.8.142]) by mx.gmail.com with ESMTP id a5sm239338qbd.2006.09.05.08.54.26; Tue, 05 Sep 2006 08:54:27 -0700 (PDT) In-Reply-To: <00A2E2156BEE8446A81C8881AE117F193C37A7@companyweb> References: <00A2E2156BEE8446A81C8881AE117F193C37A7@companyweb> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: <53E4A8E7-3DBF-4216-96F0-7C4F0C7CF80B@prohost.org> Cc: "internals" Content-Transfer-Encoding: 7bit Date: Tue, 5 Sep 2006 11:54:07 -0400 To: Matthias Pigulla X-Mailer: Apple Mail (2.752.2) Sender: Ilia Alshanetsky Subject: Re: AW: [PHP-DEV] file_exists() and safe_mode From: ilia@prohost.org (Ilia Alshanetsky) On 5-Sep-06, at 11:45 AM, Matthias Pigulla wrote: > 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? Now there is (because of the change), before there was none. Do the check before, you'd need to open the file with @fopen(), see if that failed and if it not, then you know for certain you can work with the file. Ilia Alshanetsky