note 109389 added to function.fnmatch
| From: | bernd dot ebert at gmx dot net | Date: | Fri, 13 Jul 2012 11:21:50 +0000 |
| Subject: | note 109389 added to function.fnmatch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-189117@lists.php.net to get a copy of this message | ||
There is a problem within the pcre_fnmatch-Function concerning backslashes. Those will be masked by
preq_quote and ADDITONALLY by the strtr if FN_NOESCAPE is not set -> something like
"*a(*" will finally result in "#^.*a\\(.*$#". Note the double backslash which
effectively does NOT mask the "(" correctly.
Since preq_quote always matches a backslash I don't think that this'll work with using
preg_quote at all.
----
Server IP: 158.255.214.58
Probable Submitter: 193.201.183.198
----
Manual Page -- http://www.php.net/manual/en/function.fnmatch.php
Edit -- https://master.php.net/note/edit/109389
Del: integrated -- https://master.php.net/note/delete/109389/integrated
Del: useless -- https://master.php.net/note/delete/109389/useless
Del: bad code -- https://master.php.net/note/delete/109389/bad+code
Del: spam -- https://master.php.net/note/delete/109389/spam
Del: non-english -- https://master.php.net/note/delete/109389/non-english
Del: in docs -- https://master.php.net/note/delete/109389/in+docs
Del: other reasons-- https://master.php.net/note/delete/109389
Reject -- https://master.php.net/note/reject/109389
Search -- https://master.php.net/manage/user-notes.php