From: phpbugs at jan-o-sch dot net Operating system: Linux / Solaris PHP version: 5.2.10 PHP Bug Type: Feature/Change Request Bug description: Need access to system errno
Description: ------------ All system level php functions only return boolean values, which makes generic error handling easy. However, for a more sophisticated error handling, access to errno is required. For example: I try to touch() a file and touch() returns false. The only hint I can get is using an error handler or calling error_get_last(), none of which provides me with an errno value. Yes, I do want to react differently to EPERM and EDQUOT. No, I do not want to parse "touch(): Unable to create file /fail because Permission denied". Alternatively, having posix_* versions of all system functions would allow one to use posix_get_last_error(). -- Edit bug report at http://bugs.php.net/?id=49396&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49396&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49396&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49396&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49396&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49396&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49396&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49396&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49396&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49396&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49396&r=support Expected behavior: http://bugs.php.net/fix.php?id=49396&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49396&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49396&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49396&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49396&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49396&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49396&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49396&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49396&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49396&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49396&r=mysqlcfg