|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-09-14 09:57 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 18:00:01 2025 UTC |
Description: ------------ I'm reposting this, which is the same as #48778, as I don't think that issue is a duplicate of #48746. If my Apache's DocumentRoot directory is a junction point, PHP fails to open the actual file I'm trying to load. For example, if I use C:/my_junction as the DocumentRoot, and try to load index.php found in that directory, it fails and PHP spits the following (see actual result). Using the CLI version, I made sure file_exists returned true: c:\xampp\php\php.exe -r "var_dump(file_exists('c:\my_junction\index.php'));" boolean(true) Reproduce code: --------------- - linkd c:\my_junction c:\some_other_dir - Create index.php in c:\my_junction, containing anything - Change apache config to use c:\my_junction as it's DocumentRoot - Try to load http://<apache_server_address>/index.php Note: linkd comes from the Windows 2000 Resource Kit: "Links an NTFS directory to a target valid object name in Windows 2000." I think there's other ways to create junction points; see #48746 for examples. Expected result: ---------------- Correctly load index.php Actual result: -------------- The following is logged in Apache's error_log, and appears in my browser: Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0 Fatal error: Unknown: Failed opening required 'C:/my_junction/index.php' (include_path='.;C:\xampp\php\PEAR') in Unknown on line 0