File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed
Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 99 . Fixed bug GH-14590 (Memory leak in FPM test gh13563-conf-bool-env.phpt.
1010 (nielsdos)
1111 . Fixed OSS-Fuzz #69765. (nielsdos)
12+ . Fixed bug GH-14741 (Segmentation fault in Zend/zend_types.h). (nielsdos)
1213
1314- Dom:
1415 . Fixed bug GH-14702 (DOMDocument::xinclude() crash). (nielsdos)
Original file line number Diff line number Diff line change @@ -667,6 +667,7 @@ ZEND_API void zend_register_interfaces(void)
667667
668668 memcpy (& zend_internal_iterator_handlers , zend_get_std_object_handlers (),
669669 sizeof (zend_object_handlers ));
670+ zend_internal_iterator_handlers .clone_obj = NULL ;
670671 zend_internal_iterator_handlers .free_obj = zend_internal_iterator_free ;
671672}
672673/* }}} */
Original file line number Diff line number Diff line change 1+ --TEST--
2+ GH-14741 (Segmentation fault in Zend/zend_types.h)
3+ --EXTENSIONS--
4+ zend_test
5+ --FILE--
6+ <?php
7+ $ subject = new \ZendTest \Iterators \TraversableTest ();
8+ $ it = $ subject ->getIterator ();
9+ try {
10+ clone $ it ;
11+ } catch (Error $ e ) {
12+ echo $ e ->getMessage (), "\n" ;
13+ }
14+ ?>
15+ --EXPECT--
16+ Trying to clone an uncloneable object of class InternalIterator
17+ TraversableTest::drop
You can’t perform that action at this time.
0 commit comments