xref: /PHP-8.3/ext/zend_test/tests/gh14741.phpt (revision eb8c3cb7)
1--TEST--
2GH-14741 (Segmentation fault in Zend/zend_types.h)
3--EXTENSIONS--
4zend_test
5--FILE--
6<?php
7$subject = new \ZendTest\Iterators\TraversableTest();
8$it = $subject->getIterator();
9try {
10    clone $it;
11} catch (Error $e) {
12    echo $e->getMessage(), "\n";
13}
14?>
15--EXPECT--
16Trying to clone an uncloneable object of class InternalIterator
17TraversableTest::drop
18