note 93948 added to function.is-link

From: Date: Thu, 08 Oct 2009 08:53:06 +0000
Subject: note 93948 added to function.is-link
Groups: php.notes 
Request: Send a blank email to php-notes+get-161497@lists.php.net to get a copy of this message
I have the experience that is_link("/tmp/test/") failed, but is_link("/tmp/test") is not, which is may be the expected behaviour, but it's quite annoying, since I have path names stored in config files, and sometimes they are with "/" at the end. So now I always rtrim() the "/" from the filename before I test them ... ---- Server IP: 92.43.200.200 Probable Submitter: 213.163.0.181 ---- Manual Page -- http://www.php.net/manual/en/function.is-link.php Edit -- https://master.php.net/note/edit/93948 Del: integrated -- https://master.php.net/note/delete/93948/integrated Del: useless -- https://master.php.net/note/delete/93948/useless Del: bad code -- https://master.php.net/note/delete/93948/bad+code Del: spam -- https://master.php.net/note/delete/93948/spam Del: non-english -- https://master.php.net/note/delete/93948/non-english Del: in docs -- https://master.php.net/note/delete/93948/in+docs Del: other reasons-- https://master.php.net/note/delete/93948 Reject -- https://master.php.net/note/reject/93948 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161497) next »