File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 2
2
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3
3
?? ??? ????, PHP 7.3.12
4
4
5
+ - Core:
6
+ . Fixed bug #78658 (Memory corruption using Closure::bindTo). (Nikita)
7
+
5
8
- Iconv:
6
9
. Fixed bug #78642 (Wrong libiconv version displayed). (gedas at martynas,
7
10
cmb).
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #78658: Memory corruption using Closure::bindTo()
3
+ --FILE--
4
+ <?php
5
+
6
+ $ c = function (){};
7
+
8
+ $ scope = "AAAA " ;
9
+ $ scope = "{$ scope }BBBB " ;
10
+ $ c ->bindTo (new stdClass , $ scope );
11
+
12
+ ?>
13
+ --EXPECTF--
14
+ Warning: Class 'AAAABBBB' not found in %s on line %d
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ ZEND_METHOD(Closure, bind)
200
200
ce = closure -> func .common .scope ;
201
201
} else if ((ce = zend_lookup_class_ex (class_name , NULL , 1 )) == NULL ) {
202
202
zend_error (E_WARNING , "Class '%s' not found" , ZSTR_VAL (class_name ));
203
- zend_string_release_ex ( class_name , 0 );
203
+ zend_tmp_string_release ( tmp_class_name );
204
204
RETURN_NULL ();
205
205
}
206
206
zend_tmp_string_release (tmp_class_name );
You can’t perform that action at this time.
0 commit comments