]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-5.6' into PHP-7.0
authorChristoph M. Becker <cmb@php.net>
Thu, 28 Jul 2016 11:09:09 +0000 (13:09 +0200)
committerChristoph M. Becker <cmb@php.net>
Thu, 28 Jul 2016 11:12:40 +0000 (13:12 +0200)
# Resolved conflicts:
# ext/mbstring/php_mbregex.c

1  2 
NEWS
ext/mbstring/php_mbregex.c

diff --cc NEWS
index 0be5511053e6f71b0b7f87769c7e28880c0cbf32,962be025812d596ef28ac3e0d8cc25d8a6afd123..d7a956990f4811033f7ef6f543b2f7fc6ef979b6
--- 1/NEWS
--- 2/NEWS
+++ b/NEWS
@@@ -58,13 -41,12 +58,17 @@@ PH
    . Partially fixed #72506 (idn_to_ascii for UTS #46 incorrect for long domain
      names). (cmb)
  
+ - mbstring:
+   . Fixed bug #72691 (mb_ereg_search raises a warning if a match zero-width).
+     (cmb)
 +- Opcache:
 +  . Fixed bug #72590 (Opcache restart with kill_all_lockers does not work).
 +    (Keyur)
 +
  - PCRE:
    . Fixed bug #72688 (preg_match missing group names in matches). (cmb)
 +  . Upgraded to PCRE 8.39. (Anatol)
  
  - PDO_pgsql:
    . Fixed bug #70313 (PDO statement fails to throw exception). (Matteo)
index 573a5e9b9cc8dcb4e68ba66e4f51d66156ac7ff1,3509165ca9ed5354eaa9f51b85d8c818d127f5f5..95932e31ae737e2b21aec63f475331bcc71d17c3
@@@ -1243,12 -1232,9 +1243,9 @@@ _php_mb_regex_ereg_search_exec(INTERNAL
        } else if (err <= -2) {
                OnigUChar err_str[ONIG_MAX_ERROR_MESSAGE_LEN];
                onig_error_code_to_str(err_str, err);
 -              php_error_docref(NULL TSRMLS_CC, E_WARNING, "mbregex search failure in mbregex_search(): %s", err_str);
 +              php_error_docref(NULL, 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, E_WARNING, "Empty regular expression");
-               }
                switch (mode) {
                case 1:
                        array_init(return_value);