Edit report at http://bugs.php.net/bug.php?id=48778&edit=1
ID: 48778 Comment by: sarunas dot valaskevicius at oxid-esales dot com Reported by: cs at koch-aplsystems dot de Summary: Files on NTFS Mounted Volumes (Junctions) inaccessible Status: Bogus Type: Bug Package: *General Issues Operating System: win32 only - XP SP3 PHP Version: 5.3.0 Assigned To: pajoye Block user comment: N New Comment: we faced similar problem on linux, while mounting windows dir, which seems to be the same problem as bug#50150. Also, the workaround to add parameter "-o noserverino" while mounting worked ok (maybe for windows there is a similar mounting feature?). Previous Comments: ------------------------------------------------------------------------ [2009-08-26 20:45:18] paj...@php.net Please follow #48746, same problem. I close (bogus) this bug to avoid to have to split the info in too many reports. ------------------------------------------------------------------------ [2009-08-18 01:00:01] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2009-08-15 20:39:26] php at cwdd dot info I was getting these two warnings when switching from PHP4 to PHP5 on my setup (which included softlink / soft link / junction / junctions) on a wamp server: Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0 Fatal error: Unknown: Failed opening required 'xxx' in Unknown on line 0 That was when I was trying to run 5.3.0. As previously mentioned, junctions work when using 5.2.8. After downgrading to 5.2.8 it immediately solved the problem (ps: for my setup I had to enable short tags) ------------------------------------------------------------------------ [2009-08-10 20:56:30] mats dot lindh at gmail dot com (If the formatting of this comment gets fubared, I've created a copy online: http://e-mats.org/resources/php-5.3-windows-junctions.txt) Here's a simple test opening a file in PHP instead (I'm guessing that the first open file in the php binary ignores stuff such as streams, etc. and uses another codepath): test.php ======== <?php var_dump(file_get_contents("testcase-junction/test.txt")); var_dump(file_get_contents("testcase/test.txt")); With a snapshot downloaded today vs PHP 5.2.5 (from WAMP, which was the only old installation I had around): F:\temp\php-5.3-win32-VC9-x86-latest>php -v PHP 5.3.1-dev (cli) (built: Aug 10 2009 19:52:21) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies F:\temp\php-5.3-win32-VC9-x86-latest>mkdir testcase F:\temp\php-5.3-win32-VC9-x86-latest>cd testcase F:\temp\php-5.3-win32-VC9-x86-latest\testcase>echo "This is a file" > test.txt F:\temp\php-5.3-win32-VC9-x86-latest\testcase>cd .. F:\temp\php-5.3-win32-VC9-x86-latest>junction testcase-junction testcase Junction v1.05 - Windows junction creator and reparse point viewer Copyright (C) 2000-2007 Mark Russinovich Systems Internals - http://www.sysinternals.com Created: F:\temp\php-5.3-win32-VC9-x86-latest\testcase-junction Targetted at: F:\temp\php-5.3-win32-VC9-x86-latest\testcase F:\temp\php-5.3-win32-VC9-x86-latest>php test.php Warning: file_get_contents(testcase-junction/test.txt): failed to open stream: No such file or directory in F:\temp\php-5.3-win32-VC9-x86-latest\test.php on line 2 bool(false) string(19) ""This is a file" " F:\temp\php-5.3-win32-VC9-x86-latest>dir [snip] 10.08.2009 22:40 <DIR> testcase 10.08.2009 22:41 <JUNCTION> testcase-junction F:\temp\php5.2.5>php -v PHP 5.2.5 (cli) (built: Nov 8 2007 23:18:51) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies F:\temp\php5.2.5>mkdir testcase F:\temp\php5.2.5>cd testcase F:\temp\php5.2.5\testcase>echo "This is a file" > test.txt F:\temp\php5.2.5\testcase>cd .. F:\temp\php5.2.5>junction testcase-junction testcase Junction v1.05 - Windows junction creator and reparse point viewer Copyright (C) 2000-2007 Mark Russinovich Systems Internals - http://www.sysinternals.com Created: F:\temp\php5.2.5\testcase-junction Targetted at: F:\temp\php5.2.5\testcase F:\temp\php5.2.5>php test.php string(19) ""This is a file" " string(19) ""This is a file" " F:\temp\php5.2.5>dir [snip] 10.08.2009 22:46 <DIR> testcase 10.08.2009 22:46 <JUNCTION> testcase-junction (This does not involve the DocumentRoot as in the first test case, and should hopefully be easier to isolate) ------------------------------------------------------------------------ [2009-08-10 15:33:37] paj...@php.net Can you using CLI or FastCGI please? Using: F:\wc63>dir c:\temp\ 10.08.2009 17:30 <JUNCTION> foo [f:\] and this call: php-cgi.exe c:\temp\foo\wc63\http\pwe\t.php it works just fine (CLI/FCGI). It could be an apache only problem. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=48778 -- Edit this bug report at http://bugs.php.net/bug.php?id=48778&edit=1