ID: 25469
User updated by: christian at freemails dot at
Reported By: christian at freemails dot at
-Status: Bogus
+Status: Open
Bug Type: Filesystem function related
Operating System: Windows NT 5.2 build 3790
-PHP Version: 4.3.2
+PHP Version: 4.3.2 (also tested with 4.3.3)
New Comment:

well, I upgraded to 4.3.3 now.

But how to make sure that this is not a PHP bug? I am really sure that
it (the share and the files) is writable and readable.


Previous Comments:
------------------------------------------------------------------------

[2003-09-10 18:43:19] [email]sniperphp.net[/email]

1. 4.3.3 is already released
2. And it's the permissions. Not bug.



------------------------------------------------------------------------

[2003-09-10 11:25:48] christian at freemails dot at

Description:
------------
well, I expierenced today this error message (see the output field in
the bugreport)
But I checked it by running cmd.exe (the Windows NT standard shell) as
webserver user and I can simply access any files. The share is writable
and on a FAT32 partition so no chmods or so on apply.

Well some PHP details:
It seems that I can use any filesystem function in PHP to fail to
access it. (tested with file)
file_exists return false.
I am using PHP as apache module as distributed on [url]www.php.net[/url]
Apache 1.3.28 with PHP 4.3.2
Something that maybe apply: Today I upgraded my Apache to 1.3.28 from
1.3.27.

Reproduce code:
---------------
<?php
var_dump( file("\\\\somehost\\someshare\\somefile.txt") );

/* (line 8 is quoted in the bugreport) */
?>

Actual result:
--------------
Warning: file(\\pc4\hd2\do_chroot) [function.file.php]: failed to open
stream: Permission denied in c:\programme\apache
group\apache\htdocs\somescript.php on line 8


------------------------------------------------------------------------


--
Edit this bug report at [url]http://bugs.php.net/?id=25469&edit=1[/url]