]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-7.3' into PHP-7.4
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 9 Oct 2019 15:00:47 +0000 (17:00 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 9 Oct 2019 15:00:55 +0000 (17:00 +0200)
1  2 
NEWS
Zend/zend_closures.c

diff --cc NEWS
index 2a54015954df5e1e29f56f4cb26da2e868ab5a52,e96d88f4c1c11b8686313bec3bf2edfc01d64aaf..43791a4b7e9e0ef9a1d4eaebe78b43e6cd41a4de
--- 1/NEWS
--- 2/NEWS
+++ b/NEWS
@@@ -1,19 -1,10 +1,20 @@@
  PHP                                                                        NEWS
  |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 -?? ??? ????, PHP 7.3.12
 +?? ??? ????, PHP 7.4.0RC4
  
  - Core:
 +  . Fixed bug #78614 (Does not compile with DTRACE anymore).
 +    (tz at FreeBSD dot org)
 +  . Fixed bug #78620 (Out of memory error). (cmb, Nikita)
 +  . Fixed bug #78632 (method_exists() in php74 works differently from php73 in
 +    checking priv. methods). (Nikita)
 +  . Fixed bug #78644 (SEGFAULT in ZEND_UNSET_OBJ_SPEC_VAR_CONST_HANDLER).
 +    (Nikita)
+   . Fixed bug #78658 (Memory corruption using Closure::bindTo). (Nikita)
  
 +- COM:
 +  . Fixed bug #78650 (new COM Crash). (cmb)
 +
  - Iconv:
    . Fixed bug #78642 (Wrong libiconv version displayed). (gedas at martynas,
      cmb).
index ae22ea3ecd3a3ef25dc854252972c5dc5a957d62,fce69f12ff9bb477b848d765c55ffcf302774e6e..de80902852844d1f3d6a6001b248ff1e583e67b9
@@@ -214,9 -198,9 +214,9 @@@ ZEND_METHOD(Closure, bind
                        zend_string *class_name = zval_get_tmp_string(scope_arg, &tmp_class_name);
                        if (zend_string_equals_literal(class_name, "static")) {
                                ce = closure->func.common.scope;
 -                      } else if ((ce = zend_lookup_class_ex(class_name, NULL, 1)) == NULL) {
 +                      } else if ((ce = zend_lookup_class(class_name)) == NULL) {
                                zend_error(E_WARNING, "Class '%s' not found", ZSTR_VAL(class_name));
-                               zend_string_release_ex(class_name, 0);
+                               zend_tmp_string_release(tmp_class_name);
                                RETURN_NULL();
                        }
                        zend_tmp_string_release(tmp_class_name);