Bug #63751 [Opn->Nab]: PCRE failed to match some expressions
| From: | felipe@php.net | Date: | Fri, 14 Dec 2012 22:41:01 +0000 |
| Subject: | Bug #63751 [Opn->Nab]: PCRE failed to match some expressions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-175368@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63751&edit=1
ID: 63751
Updated by: felipe@php.net
Reported by: cosechy at gmail dot com
Summary: PCRE failed to match some expressions
-Status: Open
+Status: Not a bug
Type: Bug
Package: PCRE related
Operating System: Ubuntu 12.04 Precise
PHP Version: 5.5Git-2012-12-12 (snap)
Block user comment: N
Private report: N
New Comment:
Hi, in such situation, check out preg_last_error() return value to diagnostic what have happened.
Not a PHP bug.
Previous Comments:
------------------------------------------------------------------------
[2012-12-12 12:07:49] cosechy at gmail dot com
Description:
------------
See the example below
Test script:
---------------
<?php
var_dump(preg_match(
"/a([bc]*|[^bc])*X|A/",
"abbbbbbcccccccccc...A",
$m));
var_dump($m);
//this pattern is equal to "/a([bc]|[^bc])*X|A/", which works well
Expected result:
----------------
int(1)
array(1) {
[0]=>
string(1) "A"
}
Actual result:
--------------
bool(false)
array(0) {
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63751&edit=1