Home
last modified time | relevance | path

Searched refs:getClosure (Results 1 – 25 of 27) sorted by relevance

12

/PHP-8.2/ext/reflection/tests/
H A DReflectionFunction_getClosure_basic.phpt2 Test ReflectionFunction::getClosure() function : basic functionality
5 echo "*** Testing ReflectionFunction::getClosure() : basic functionality ***\n";
18 $closure = $func->getClosure();
22 $closure = $func->getClosure();
27 *** Testing ReflectionFunction::getClosure() : basic functionality ***
H A DReflectionMethod_getClosure_error.phpt2 Test ReflectionMethod::getClosure() function : error functionality
5 echo "*** Testing ReflectionMethod::getClosure() : error conditions ***\n";
32 echo "\n-- Testing ReflectionMethod::getClosure() function with invalid object --\n";
34 var_dump( $method->getClosure( $fakeobj ) );
41 *** Testing ReflectionMethod::getClosure() : error conditions ***
43 -- Testing ReflectionMethod::getClosure() function with invalid object --
H A DReflectionMethod_getClosure_basic.phpt2 Test ReflectionMethod::getClosure() function : basic functionality
5 echo "*** Testing ReflectionMethod::getClosure() : basic functionality ***\n";
32 $closure = $method->getClosure();
37 $closure = $method->getClosure( $object );
44 *** Testing ReflectionMethod::getClosure() : basic functionality ***
H A Dclosures_004.phpt2 Reflection on closures: Segfault with getClosure() on closure itself
9 $closure2 = $method->getClosure ();
22 $closure2 = $method->getClosure ($closure);
H A Dbug70674.phpt2 Bug #70674 (ReflectionFunction::getClosure() leaks memory when used for internal functions)
5 var_dump(((new ReflectionFunction("strlen"))->getClosure())("hello"));
H A Dbug67068.phpt2 Bug #67068 (ReflectionFunction::getClosure returns something that doesn't report as a closure)
11 $closure = $reflector->getClosure($object);
H A DReflectionFunction_getClosureScopeClass.phpt10 public static function getClosure() {
15 $closure = A::getClosure();
H A DReflectionMethod_getClosureThis.phpt28 $closure = $method->getClosure();
35 $closure = $method->getClosure( $object );
H A Dbug66430.phpt21 $closure = $method->getClosure($alpha);
/PHP-8.2/Zend/tests/
H A Dclosure_037.phpt8 function getClosure () {
33 $closure = $a->getClosure();
36 $closure = $b->getClosure();
H A Dbug70685.phpt2 Bug #70685: Segfault for getClosure() internal method rebind with invalid $this
8 $c = (new ReflectionMethod('SplStack', 'count'))->getClosure(new SplStack);
12 $c = (new ReflectionMethod('SplStack', 'count'))->getClosure(new SplStack);
H A Dclosure_006.phpt6 $getClosure = function ($v) {
12 $closure = $getClosure (2);
H A Dbug70630.phpt2 Bug #70630 (Closure::call/bind() crash with ReflectionFunction->getClosure())
6 $x = (new ReflectionFunction("substr"))->getClosure();
H A Dclosure_007.phpt24 $getClosure = $a->getClosureGetter();
26 $closure = $getClosure();
H A Dbug70681.phpt6 $c = (new ReflectionMethod('SplStack', 'count'))->getClosure(new SplStack);
9 $c = (new ReflectionFunction('strlen'))->getClosure();
H A Dbug75290.phpt6 var_dump((new ReflectionFunction('sin'))->getClosure());
H A Dbug69802_2.phpt5 $f = (new ReflectionFunction('iterator_to_array'))->getClosure();
H A Dclosure_046.phpt14 function getClosure() {
21 $nonstaticScoped = $a->getClosure();
H A Dbug75474.phpt17 var_dump($RF->getClosure()(4, 4));
H A Dclosure_044.phpt12 function getClosure() {
18 $nonstaticScoped = $a->getClosure();
H A Dclosure_061.phpt2 Rebinding of ::getClosure()s
85 $c = $r->getClosure(is_object($fn[0]) ? $fn[0] : null);
88 $c = (new ReflectionFunction($fn))->getClosure();
H A Dclosure_041.phpt22 function getClosure() {
39 $nonstaticScoped = $a->getClosure();
/PHP-8.2/Zend/tests/generators/
H A Dgh9750-011.phpt10 function getClosure() {
24 $gen = $gen((new C())->getClosure());
/PHP-8.2/ext/spl/tests/
H A Dspl_autoload_bug48541.phpt7 public function getClosure() {
18 $a2 = $x->getClosure();
/PHP-8.2/ext/reflection/
H A Dphp_reflection.stub.php144 public function getClosure(): Closure {} function in ReflectionFunction
232 public function getClosure(?object $object = null): Closure {} function in ReflectionMethod

Completed in 27 milliseconds

12