|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2016-07-30 23:13 UTC] cmb@php.net
-Status: Open
+Status: Verified
[2016-07-30 23:13 UTC] cmb@php.net
[2016-08-05 11:31 UTC] cmb@php.net
[2016-08-05 11:31 UTC] cmb@php.net
-Status: Verified
+Status: Closed
[2016-08-05 11:46 UTC] cmb@php.net
[2016-10-17 10:10 UTC] bwoebi@php.net
[2020-02-07 06:06 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 13:00:01 2025 UTC |
Description: ------------ When `mb_ereg` does not match, it does not empty the `$regs` array parameters. Test script: --------------- <?php var_dump(mb_ereg('(a)\1', 'aa', $m)); var_dump($m); var_dump(mb_ereg('(a)\1', 'ab', $m)); var_dump($m); var_dump(mb_ereg('(foo)\1', 'foofoo', $m)); var_dump($m); Expected result: ---------------- int(2) array(2) { [0]=> string(2) "aa" [1]=> string(1) "a" } bool(false) array(0) {} int(6) array(2) { [0]=> string(6) "foofoo" [1]=> string(3) "foo" } Actual result: -------------- int(2) array(2) { [0]=> string(2) "aa" [1]=> string(1) "a" } bool(false) array(2) { [0]=> string(2) "aa" [1]=> string(1) "a" } int(6) array(2) { [0]=> string(6) "foofoo" [1]=> string(3) "foo" }