diff options
author | Christoph M. Becker <cmb@php.net> | 2016-07-28 13:07:05 +0200 |
---|---|---|
committer | Christoph M. Becker <cmb@php.net> | 2016-07-28 13:07:05 +0200 |
commit | d276e6a8386a68d57d5dd07c3d7e15de4b03c6b3 (patch) | |
tree | ca8274c03ebdf7451f06b202d3b14dd912ef0aa0 /ext/mbstring/php_mbregex.c | |
parent | 0ae8c337a340d16e1b9891d564a49bbf91ecfbd9 (diff) | |
download | php-git-d276e6a8386a68d57d5dd07c3d7e15de4b03c6b3.tar.gz |
Fix #72691: mb_ereg_search raises a warning if a match zero-width
That warning doesn't make sense (PCRE doesn't throw such a warning either),
so we remove it.
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r-- | ext/mbstring/php_mbregex.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index 67951a828e..3509165ca9 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -1235,9 +1235,6 @@ _php_mb_regex_ereg_search_exec(INTERNAL_FUNCTION_PARAMETERS, int mode) php_error_docref(NULL TSRMLS_CC, E_WARNING, "mbregex search failure in mbregex_search(): %s", err_str); RETVAL_FALSE; } else { - if (MBREX(search_regs)->beg[0] == MBREX(search_regs)->end[0]) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Empty regular expression"); - } switch (mode) { case 1: array_init(return_value); |