What happened to error details in stat
| From: | Jan Dolecek | Date: | Thu, 11 Aug 2011 11:25:45 +0000 |
| Subject: | What happened to error details in stat | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-54506@lists.php.net to get a copy of this message | ||
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