note 62550 added to function.fnmatch
| From: | jsnell at networkninja dot com | Date: | Fri, 03 Mar 2006 03:12:10 +0000 |
| Subject: | note 62550 added to function.fnmatch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-104743@lists.php.net to get a copy of this message | ||
The last line of soywiz at gmail dot com windows replacement should be changed to:
return preg_match('/' . $npattern . '$/i', $string);
otherwise, a pattern for *.xml will match file.xml~ or any else anything with the text *.xml in it,
regardless of position.
----
Server IP: 216.194.113.175
Probable Submitter: 216.145.226.130
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.fnmatch.php
Edit -- http://master.php.net/note/edit/62550
Del: integrated -- http://master.php.net/note/delete/62550/integrated
Del: useless -- http://master.php.net/note/delete/62550/useless
Del: bad code -- http://master.php.net/note/delete/62550/bad+code
Del: spam -- http://master.php.net/note/delete/62550/spam
Del: non-english -- http://master.php.net/note/delete/62550/non-english
Del: in docs -- http://master.php.net/note/delete/62550/in+docs
Del: other reasons-- http://master.php.net/note/delete/62550
Reject -- http://master.php.net/note/reject/62550
Search -- http://master.php.net/manage/user-notes.php