#25700 [Opn]: PCRE_ANCHORED doesn't work
| From: | php at bouchery dot com | Date: | Tue, 30 Sep 2003 11:02:17 +0000 |
| Subject: | #25700 [Opn]: PCRE_ANCHORED doesn't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-48306@lists.php.net to get a copy of this message | ||
ID: 25700
User updated by: php at bouchery dot com
Reported By: php at bouchery dot com
Status: Open
Bug Type: PCRE related
Operating System: all
PHP Version: Irrelevant
New Comment:
In fact, "A" option is equal to "^" + patern.
If I don't misunderstand, "A" option should be equal to "^" + patern +
"$"
Previous Comments:
------------------------------------------------------------------------
[2003-09-30 05:03:48] php at bouchery dot com
Description:
------------
PCRE_ANCHORED option dosn't work
Reproduce code:
---------------
<?php
echo preg_match( '
[a-z]{4}A', 'fred24' ) ? 'ok' :
'ko';
?>
Expected result:
----------------
option "A" must return "ko"
Actual result:
--------------
Return "ok" and it's wrong
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25700&edit=1