note 89116 added to function.realpath
| From: | markandrewslade at dontspamemeat dot gmail | Date: | Sun, 22 Feb 2009 20:39:30 +0000 |
| Subject: | note 89116 added to function.realpath | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-150961@lists.php.net to get a copy of this message | ||
Contrary to documentation, realpath will not return FALSE if the path provided does not exist. In
fact, it doesn't seem to care at all if the path exists.
thisguy@jupiter tmp$ ls -a
. ..
thisguy@jupiter tmp$ php
<?php echo realpath('does/not/exist') ."\n";?>
/home/thisguy/tmp/does/not/exist
----
Server IP: 64.71.164.2
Probable Submitter: 168.122.64.209
----
Manual Page -- http://www.php.net/manual/en/function.realpath.php
Edit -- https://master.php.net/note/edit/89116
Del: integrated -- https://master.php.net/note/delete/89116/integrated
Del: useless -- https://master.php.net/note/delete/89116/useless
Del: bad code -- https://master.php.net/note/delete/89116/bad+code
Del: spam -- https://master.php.net/note/delete/89116/spam
Del: non-english -- https://master.php.net/note/delete/89116/non-english
Del: in docs -- https://master.php.net/note/delete/89116/in+docs
Del: other reasons-- https://master.php.net/note/delete/89116
Reject -- https://master.php.net/note/reject/89116
Search -- https://master.php.net/manage/user-notes.php