|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-03-03 13:04 UTC] jani@php.net
[2008-03-03 13:39 UTC] mmichel at chez dot com
[2008-03-03 13:45 UTC] mmichel at chez dot com
[2008-03-03 13:46 UTC] jani@php.net
[2008-03-03 13:56 UTC] mmichel at chez dot com
[2008-03-03 14:17 UTC] mmichel at chez dot com
[2008-03-03 14:31 UTC] mmichel at chez dot com
[2008-03-03 14:48 UTC] jani@php.net
[2008-03-03 15:03 UTC] mmichel at chez dot com
[2008-03-05 09:28 UTC] jani@php.net
[2008-03-06 12:45 UTC] mmichel at chez dot com
[2008-03-11 21:56 UTC] jani@php.net
[2011-03-04 17:06 UTC] bko_san at hotmail dot com
[2011-03-04 17:15 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 22:00:01 2025 UTC |
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...