Your IP : 216.73.216.48


Current Path : /hdd/hdd21/main/php/php-7.3.1/Zend/tests/
Upload File :
Current File : //hdd/hdd21/main/php/php-7.3.1/Zend/tests/closure_060.phpt

--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)