#49533 [NEW]: Can't load PHP files in junction directories

From: Date: Fri, 11 Sep 2009 17:33:42 +0000
Subject: #49533 [NEW]: Can't load PHP files in junction directories
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-142260@lists.php.net to get a copy of this message
From: bougu at touchtunes dot com Operating system: Windows XP SP3 PHP version: 5.3SVN-2009-09-11 (snap) PHP Bug Type: Directory function related Bug description: Can't load PHP files in junction directories 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 -- Edit bug report at http://bugs.php.net/?id=49533&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49533&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49533&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49533&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49533&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49533&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49533&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49533&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49533&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49533&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49533&r=support Expected behavior: http://bugs.php.net/fix.php?id=49533&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49533&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49533&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49533&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49533&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49533&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49533&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49533&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49533&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49533&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49533&r=mysqlcfg

« previous php.bugs (#142260) next »