#22178 [Opn->Fbk]: file_exists() outputs warnings if file does not exist

From: Date: Wed, 12 Feb 2003 04:45:51 +0000
Subject: #22178 [Opn->Fbk]: file_exists() outputs warnings if file does not exist
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32865@lists.php.net to get a copy of this message
ID: 22178 Updated by: sniper@php.net Reported By: marchart@marchart.at -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: solaris8 PHP Version: 4.3.0 New Comment: Was this last comment for the PHP 4.3.1-dev version? (the latest STABLE snapshot) If so, please update the version to be '4.3.1-dev'. One thing you could check is that all the directories in the path to the file have the same uid/gid/permission that is required for the file. (This is actually another bug which I can't find now.) Previous Comments: ------------------------------------------------------------------------ [2003-02-11 16:36:35] marchart@marchart.at The warnings disappear when specifying the full path of the file. Same problem also with function "is_file()" Best Regards! ------------------------------------------------------------------------ [2003-02-11 16:32:13] iliaa@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip At least one bug associated with warnings in file_exists & safe_mode has been fixed in latest CVS. So, try the latest CVS and see if that fixes the problem, if it does not please reply with all of the errors generated by the function. ------------------------------------------------------------------------ [2003-02-11 16:12:11] marchart@marchart.at Yes! safe_mode = On safe_mode_exec_dir = /usr/local/php/bin open_basedir = /www Filesystemlayout, usernames/uids/gids and php.ini are ident to my linux box, where this is running fine ------------------------------------------------------------------------ [2003-02-11 16:06:20] iliaa@php.net Is your solaris server using the safe_mode and/or open_basedir ini directives? ------------------------------------------------------------------------ [2003-02-11 16:01:51] marchart@marchart.at The function "file_exists()" causes following PHP warning on solaris8, if the file does not exist. If the file exists the function works correctly. Warning: file_exists() [function.file-exists]: Unable to access ... On linux with the same setup (php 4.3.0 and apache 1.3.27) it works fine! (The sun is a mirror from the linux box) Best Regards Johannes ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22178&edit=1

« previous php.bugs (#32865) next »