xref: /php-src/ext/opcache/tests/jit/gh16879.phpt (revision de30ba50)
1--TEST--
2GH-16879 (JIT dead code skipping does not update call_level)
3--EXTENSIONS--
4opcache
5--INI--
6opcache.enable=1
7opcache.enable_cli=1
8opcache.file_update_protection=0
9opcache.jit_buffer_size=32M
10opcache.jit=1235
11opcache.jit_hot_func=1
12--FILE--
13<?php
14match(0){};
15var_dump(new stdClass);
16var_dump(3);
17?>
18--EXPECTF--
19Fatal error: Uncaught UnhandledMatchError: Unhandled match case 0 in %s:%d
20Stack trace:
21#0 {main}
22  thrown in %s on line %d
23