# AW: file_exists() and safe_mode

- Thread: https://externals.io/message/25531
- Original archive: https://news-web.php.net/php.internals/25531
- Started by Matthias Pigulla on 2006-09-05T15:51:26+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #25531 — Matthias Pigulla — 2006-09-05T15:51:26+00:00

URL: https://externals.io/message/25531#25531

> 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.
