From: yarontal12 at gmail dot com Operating system: Win XP PHP version: 5.2CVS-2009-01-08 (snap) PHP Bug Type: Filesystem function related Bug description: No error when using fopen with emty string
Description: ------------ $fh = fopen("", "r"); that doesn't produce an error, but doesn't return a valid stream either. Same problem with passing NULL or ''. Reproduce code: --------------- $fh = fopen("", "r"); Expected result: ---------------- Warning: fopen() [function.fopen]: failed to open stream: No such file or directory in test.php on line 2 Actual result: -------------- nothing -- Edit bug report at http://bugs.php.net/?id=47037&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47037&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47037&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47037&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47037&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47037&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47037&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47037&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47037&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47037&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47037&r=support Expected behavior: http://bugs.php.net/fix.php?id=47037&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47037&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47037&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47037&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47037&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47037&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47037&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47037&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47037&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47037&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47037&r=mysqlcfg