diff options
Diffstat (limited to 'ext/opcache/tests/jit/send_val_001.phpt')
-rw-r--r-- | ext/opcache/tests/jit/send_val_001.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ext/opcache/tests/jit/send_val_001.phpt b/ext/opcache/tests/jit/send_val_001.phpt new file mode 100644 index 0000000000..1293df7dec --- /dev/null +++ b/ext/opcache/tests/jit/send_val_001.phpt @@ -0,0 +1,23 @@ +--TEST-- +JIT SEND_VAL: 001 +--INI-- +opcache.enable=1 +opcache.enable_cli=1 +opcache.file_update_protection=0 +opcache.jit_buffer_size=1M +--SKIPIF-- +<?php require_once('skipif.inc'); ?> +--FILE-- +<?php +function foo($type) { + $key = md5( + is_array($type) ? \implode('_', $type) : $type . + "ops" + ); + return $key; +} +var_dump(foo("int")); +var_dump(foo(["int"])); +--EXPECT-- +string(32) "253a948ecc9192cb47e492f692aa63a8" +string(32) "fa7153f7ed1cb6c0fcf2ffb2fac21748" |