dis-bench / src /php /php-src /Zend /tests /closures /closure_023.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
230 Bytes
--TEST--
Closure 023: Closure declared in statically called method
--FILE--
<?php
class foo {
public static function bar() {
$func = function() { echo "Done"; };
$func();
}
}
foo::bar();
?>
--EXPECT--
Done