diff --git a/ext/opcache/tests/jit/send_val_002.phpt b/ext/opcache/tests/jit/send_val_002.phpt new file mode 100644 index 00000000000..6268af8f736 --- /dev/null +++ b/ext/opcache/tests/jit/send_val_002.phpt @@ -0,0 +1,23 @@ +--TEST-- +JIT SEND_VAL: 002 named arg +--INI-- +opcache.enable=1 +opcache.enable_cli=1 +opcache.file_update_protection=0 +opcache.jit_buffer_size=1M +--FILE-- + +--EXPECTF-- +Warning: Undefined variable $x in %ssend_val_002.php on line 3 + +Fatal error: Uncaught ArgumentCountError: var_dump() expects at least 1 argument, 0 given in %ssend_val_002.php:3 +Stack trace: +#0 %ssend_val_002.php(3): var_dump(x: 0) +#1 %ssend_val_002.php(5): o() +#2 {main} + thrown in %ssend_val_002.php on line 3