blob: 2d90e39a20e712695a55e41f0d13403af7ed170d (
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
25
26
27
28
|
--TEST--
JIT ASSIGN_STATIC_PROP: 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
class Foo {
public static $prop;
}
function test($x) {
$a = [$x];
Foo::$prop = $a;
$a = 42;
}
test(42);
var_dump(Foo::$prop);
?>
--EXPECT--
array(1) {
[0]=>
int(42)
}
|