|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-12-14 22:41 UTC] felipe@php.net
[2012-12-14 22:41 UTC] felipe@php.net
-Status: Open
+Status: Not a bug
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 02:00:02 2025 UTC |
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) { }