From: cataphract Operating system: Windows 7 PHP version: 5.3.9 Package: Filesystem function related Bug Type: Bug Bug description:expand_filepath fails to resolve symlinks that point to \xxx\yyy
Description: ------------ If a path includes a symlink that points to a path like \xxx\yyy, PHP understands it as a relative path, while it's actually an absolute path (or quasi-absolute, as it doesn't have a drive letter). Expected result: ---------------- foocontents Actual result: -------------- Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Windows\system32>cd \ C:\>mkdir t C:\>mkdir t\test C:\>mklink /D t\testlink \t\test symbolic link created for t\testlink <<===>> \t\test C:\>echo foocontents > \t\testlink\foo C:\>php -r "echo file_get_contents('t\testlink\foo');" Warning: file_get_contents(t\testlink\foo): failed to open stream: No such file or directory in Command line code on line 1 C:\>php -r "echo file_get_contents('t\test\foo');" foocontents C:\>type t\testlink\foo foocontents -- Edit bug report at https://bugs.php.net/bug.php?id=60841&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60841&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60841&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60841&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60841&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60841&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60841&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60841&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60841&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60841&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60841&r=support Expected behavior: https://bugs.php.net/fix.php?id=60841&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60841&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60841&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60841&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60841&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60841&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60841&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60841&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60841&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60841&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60841&r=mysqlcfg