From: mmichel at chez dot com Operating system: Win2003 PHP version: 5.2.5 PHP Bug Type: Directory function related Bug description: realpath does not follow Virtual directory
Description: ------------ If you do a realpath('./elsewhere'), where elsewhere is a IIS virtual directory, realpath return FALSE. Reproduce code: --------------- - Use the default site in IIS6 (root=c:\inetpub\wwwroot) - in the root directory create a folder called local - Create a virtual directory (either via a network share or in another path on a local drive, e.g. C:\Elsewhere), and call it elsewhere then <?php $local='./local'; $virt='./elsewhere'; $check_path=realpath($local); print ($checkpath === FALSE) ? "local path not resolved<br>" : "local=$check_path<br>"; $check_path=realpath($virt); print ($checkpath === FALSE) ? "virtual dir not recognized<br>" : "virtual=$check_path<br>"; ?> Expected result: ---------------- local=C:\Inetpub\wwwroot\local virtual=C:\Elsewhere Actual result: -------------- local=C:\Inetpub\wwwroot\local virtual= Note that realpath does not return FALSE... -- Edit bug report at http://bugs.php.net/?id=44293&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44293&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44293&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44293&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44293&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44293&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44293&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44293&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44293&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44293&r=support Expected behavior: http://bugs.php.net/fix.php?id=44293&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44293&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44293&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44293&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44293&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44293&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44293&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44293&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44293&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44293&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44293&r=mysqlcfg