1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00
Files
archived-php-src/ext/opcache/tests/jit/switch_001.phpt
2024-01-15 09:39:13 +01:00

23 lines
364 B
PHP

--TEST--
Switch with undefined input
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
--FILE--
<?php
function foo() {
switch($y) {
case 'x':
case 'y':
}
}
foo();
?>
DONE
--EXPECTF--
Warning: Undefined variable $y in %sswitch_001.php on line 4
Warning: Undefined variable $y in %sswitch_001.php on line 5
DONE