xref: /php-src/ext/zend_test/tests/gh16388.phpt (revision a3eb1fd8)
1--TEST--
2GH-16388 (UB when freeing a cloned _ZendTestFiber)
3--EXTENSIONS--
4zend_test
5--FILE--
6<?php
7$fiber = new _ZendTestFiber(function (): int {});
8clone $fiber;
9?>
10--EXPECTF--
11Fatal error: Uncaught Error: Trying to clone an uncloneable object of class _ZendTestFiber in %s:%d
12%A
13