xref: /PHP-8.0/Zend/tests/bug78973.phpt (revision 77e131da)
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  class@anonymous->__destruct() called at [%s:%d]
19