note 106207 added to function.realpath

From: Date: Tue, 18 Oct 2011 19:15:56 +0000
Subject: note 106207 added to function.realpath
Groups: php.notes 
Request: Send a blank email to php-notes+get-183978@lists.php.net to get a copy of this message
Note that under Windows, a slash-rooted path will resolve on the local drive, and *not* necessarily C:\. For example: M:\>php -r "print realpath('/AUTOEXEC.BAT');" [prints nothing, because there is no M:\AUTOEXEC.BAT] But: M:\>C: C:\>php -r "print realpath('/AUTOEXEC.BAT');" C:\AUTOEXEC.BAT Same script, different response depending on current drive. I'm inclined to argue that this function *should* use the value of %SystemDrive% as the "slash root" base. ---- Server IP: 192.41.42.26 Probable Submitter: 174.46.204.210 ---- Manual Page -- http://www.php.net/manual/en/function.realpath.php Edit -- https://master.php.net/note/edit/106207 Del: integrated -- https://master.php.net/note/delete/106207/integrated Del: useless -- https://master.php.net/note/delete/106207/useless Del: bad code -- https://master.php.net/note/delete/106207/bad+code Del: spam -- https://master.php.net/note/delete/106207/spam Del: non-english -- https://master.php.net/note/delete/106207/non-english Del: in docs -- https://master.php.net/note/delete/106207/in+docs Del: other reasons-- https://master.php.net/note/delete/106207 Reject -- https://master.php.net/note/reject/106207 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#183978) next »