# What happened to error details in stat

- Thread: https://externals.io/message/54506
- Original archive: https://news-web.php.net/php.internals/54506
- Started by Jan Dolecek on 2011-08-11T11:25:45+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

---

## #54506 — Jan Dolecek — 2011-08-11T11:25:45+00:00

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

I remember that if error happened in stat- related functions, error
message contained also system errno and message, like in following
line:
Warning: `fileatime()`: Stat failed for /tmp\lost+found (errno=2 - No
such file or directory) in
/home/rfresh/public_html/whosonline_form.php on line 93

But now it says only:
Warning:  `filesize()`: stat failed for non-existing-file in shell code on line 1


Why PHP doesn't report reason of stat failure anymore? It makes
solving such problems much more difficult, as I don't know why stat
failed.


Note: first error message was copied from a forum post written in 2005.


Jan Dolecek
juzna.cz@gmail.com
