ID: 49673
Updated by: [email protected]
Reported By: mfthemon at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: PCRE related
Operating System: win2k7server
PHP Version: 5.3.0
New Comment:
RTFM: "Returns the number of full pattern matches (which might be
zero),
or FALSE if an error occurred."
And might the error perhaps be that the 3rd parameter is NOT optional?
:)
Previous Comments:
------------------------------------------------------------------------
[2009-09-25 19:22:46] mfthemon at gmail dot com
Description:
------------
preg_match_all doesn't return matches count when the third argument is
omitted.
Reproduce code:
---------------
var_dump(preg_match_all('/b\([\w\W]*?\)/',
'b(2)b(4)b(5)b(8)b(2)b(18)'));
Expected result:
----------------
int(6)
Actual result:
--------------
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49673&edit=1