blob: f03160dab9915ee1e707e3c991be99c92e4c14eb (
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
|
--TEST--
runtime cache must be invalidated for Closure::call()
--FILE--
<?php
class A {
private static $priv = 7;
static function get() {
return function() {
var_dump(isset(A::$priv));
};
}
}
$closure = A::get();
$closure(); // init rt_cache
$closure->call(new class(){}, null);
$closure();
?>
--EXPECT--
bool(true)
bool(false)
bool(true)
|