note 488 deleted from is_readable by ronabop

From: Date: Mon, 02 Oct 2000 11:01:17 +0000
Subject: note 488 deleted from is_readable by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-5909@lists.php.net to get a copy of this message
Quirk: is-readable returns true if the file has the user-read bit set, regardless if the process can actually read the file or not. Example: File (user/group 500/500) PHP Process running as (99/99) -rw-r--r-- is_readable returns true -rw------- is_readable returns true(!?) --w-r--r-- is_readable returns false(!?) Same problem with is_writable. These two functions return completely useless information. <B>is_readable</B> cannot be trusted to return correct information! Use <B>stat</B> or <B>fileperms</B> and do the work youself. CDI

« previous php.notes (#5909) next »