xref: /php-src/ext/opcache/tests/jit/not_003.phpt (revision 08b2ab22)
1--TEST--
2JIT NOT: 003
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.protect_memory=1
8--FILE--
9<?php
10set_error_handler(function(){y;}) . !$y;
11?>
12--EXPECTF--
13Fatal error: Uncaught Error: Undefined constant "y" in %snot_003.php:2
14Stack trace:
15#0 %s(%d): {closure:%s:%d}(2, 'Undefined varia...', '%s', 2)
16#1 {main}
17  thrown in %snot_003.php on line 2
18