Edit report at https://bugs.php.net/bug.php?id=61049&edit=1
ID: 61049
User updated by: kasper at webmasteren dot eu
Reported by: kasper at webmasteren dot eu
Summary: Fopen detects non existing file
Status: Open
Type: Bug
Package: Filesystem function related
Operating System: windows
-PHP Version: 5.3SVN-2012-02-10 (snap)
+PHP Version: 5.3.8, 5.3.9
Block user comment: N
Private report: N
New Comment:
realized the version was wrong (the date)
Previous Comments:
------------------------------------------------------------------------
[2012-02-10 19:27:37] kasper at webmasteren dot eu
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 this bug report at https://bugs.php.net/bug.php?id=61049&edit=1