unread
i dont think this is a recent change. i think its only an
oversite in the documentation.
mp@appr:~$ php ./bug.php
5.1.4
string(0) ""
bool(true)
bool(true)
mp@appr:~$ php -d safe_mode=1 ./bug.php
5.1.4
string(1) "1"
bool(true)
bool(true)
With 5.1.4 both file_exists()
and is_readable()
ignored safe_mode
restrictions, so the docs were wrong for file_exists()
(which is what
bug #37987 was about) and correct for is_readable()
. Both functions
changed their behaviour, now either this behaviour or is_readable()
docs
are wrong.
mp.