summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/jit/send_val_001.phpt
blob: dc5980f6e3a8ccb98e2a392710c0f3196ea69cd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--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"