xref: /PHP-8.1/Zend/tests/bug78973.phpt (revision de6e401e)
1--TEST--
2Bug #78973: Destructor during CV freeing causes segfault if opline never saved
3--INI--
4opcache.optimization_level=0
5--FILE--
6<?php
7
8function test($x) {
9}
10test(new class {
11    public function __destruct() {
12        debug_print_backtrace();
13    }
14});
15
16?>
17--EXPECTF--
18#0 %s(%d): class@anonymous->__destruct()
19