xref: /php-src/ext/opcache/tests/jit/switch_001.phpt (revision c16ad918)
1--TEST--
2Switch with undefined input
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7--FILE--
8<?php
9function foo() {
10    switch($y) {
11        case 'x':
12        case 'y':
13    }
14}
15foo();
16?>
17DONE
18--EXPECTF--
19Warning: Undefined variable $y in %sswitch_001.php on line 4
20
21Warning: Undefined variable $y in %sswitch_001.php on line 5
22DONE
23