From: Operating system: windows PHP version: 5.3SVN-2012-02-10 (snap) Package: Filesystem function related Bug Type: Bug Bug description:Fopen detects non existing file
Description: ------------ Tested under PHP version 5.3.8 and 5.3.9, both running xdebug and a lot of other standard plugins. The problem is for some reason that PHP simply cannot create / open a file named "../api/cache/con.js" which seems rather strange,since there is no keywords (from what i could find) there would even suggest that it could be the reason. i have used the software packet called "wamp". Configuration line: cscript /nologo configure.js "--enable-snapshot-build" "--with-pdo-oci=C:\php- sdk\php53dev\vc9\x64\deps\instantclient_10_2\sdk,shared" "--with-oci8=C:\php- sdk\php53dev\vc9\x64\deps\instantclient_10_2\sdk,shared" "--with-oci8- 11g=C:\php-sdk\php53dev\vc9\x64\deps\instantclient_11_2\sdk,shared" "--disable- debug-pack" "--disable-static-analyze" the version API: API20090626,TS,VC9 The test script: inside af subfolder, on a webserver, put this, and make sure that ../api/cache folder exists. futher more, when using the SplFileInfo the method "getType" tells me that it is a file. the method "getAbsolutePath" returns "c:\wamp\www\api\cache\CON" and the "getFileName" returns "CON.js". Test script: --------------- fopen("../api/cache/con.js","w"); Expected result: ---------------- Warning: fopen(../api/cache/con.js) [function.fopen]: failed to open stream: Bad file descriptor in C:\wamp\www\teater\indexa.php on line 3 Actual result: -------------- Warning: fopen(../api/cache/con.js) [function.fopen]: failed to open stream: Bad file descriptor in C:\wamp\www\teater\indexa.php on line 3 -- Edit bug report at https://bugs.php.net/bug.php?id=61049&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61049&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61049&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61049&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61049&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61049&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61049&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61049&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61049&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61049&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61049&r=support Expected behavior: https://bugs.php.net/fix.php?id=61049&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61049&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61049&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61049&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61049&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=61049&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61049&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61049&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61049&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61049&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61049&r=mysqlcfg