summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmb@php.net>2016-07-28 13:07:05 +0200
committerChristoph M. Becker <cmb@php.net>2016-07-28 13:07:05 +0200
commitd276e6a8386a68d57d5dd07c3d7e15de4b03c6b3 (patch)
treeca8274c03ebdf7451f06b202d3b14dd912ef0aa0 /ext/mbstring/php_mbregex.c
parent0ae8c337a340d16e1b9891d564a49bbf91ecfbd9 (diff)
downloadphp-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.c3
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);