Re: AW: [PHP-DEV] file_exists() and safe_mode

From: Date: Tue, 05 Sep 2006 15:54:07 +0000
Subject: Re: AW: [PHP-DEV] file_exists() and safe_mode
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-25532@lists.php.net to get a copy of this message
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

« previous php.internals (#25532) next »