xref: /php-src/Zend/tests/closure_060.phpt (revision f8d79582)
1--TEST--
2runtime cache must be invalidated for Closure::call()
3--FILE--
4<?php
5
6class A {
7    private static $priv = 7;
8
9    static function get() {
10        return function() {
11            var_dump(isset(A::$priv));
12        };
13    }
14}
15
16$closure = A::get();
17$closure(); // init rt_cache
18$closure->call(new class(){}, null);
19$closure();
20
21?>
22--EXPECT--
23bool(true)
24bool(false)
25bool(true)
26