Home
last modified time | relevance | path

Searched refs:fromCallable (Results 1 – 22 of 22) sorted by relevance

/PHP-8.2/Zend/tests/
H A Dclosure_compare.phpt9 $closures[0] = Closure::fromCallable('foo');
10 $closures[1] = Closure::fromCallable('foo');
14 $closures[0] = Closure::fromCallable('strlen');
15 $closures[1] = Closure::fromCallable('strlen');
19 $closures[0] = Closure::fromCallable('strlen');
20 $closures[1] = Closure::fromCallable('strrev');
55 $closures[0] = Closure::fromCallable([$foo, "exists"]);
72 $closures[0] = Closure::fromCallable([$foo, "exists"]);
73 $closures[1] = Closure::fromCallable([$foo, "exists"]);
77 $closures[0] = Closure::fromCallable([$foo, "method"]);
[all …]
H A Dgh8962.phpt14 var_dump(\Closure::fromCallable([new Bar(), 'baz']));
15 var_dump(\Closure::fromCallable([Bar::class, 'qux']));
16 var_dump(\Closure::fromCallable('Foo\Bar::qux'));
H A Dbug78689.phpt2 Bug #78689: Closure::fromCallable() doesn't handle [Closure, '__invoke']
8 $b = Closure::fromCallable($a);
H A Dbug81626.phpt2 Bug #81626: Error on use static:: in __сallStatic() wrapped to Closure::fromCallable()
13 $closure = Closure::fromCallable([TestClass::class, 'foo']);
H A Dbug75474.phpt13 var_dump(Closure::fromCallable("bar")(1, 1));
15 var_dump(Closure::fromCallable("bar")(3, 3));
H A Dclosure_call_internal.phpt6 var_dump(Closure::fromCallable([new DateTime(), 'getTimestamp'])->call(new DateTime('@123')));
H A Dclosure_063.phpt8 Closure::fromCallable('foo')->bindTo(new stdClass);
H A Dclosure_call_bind.phpt14 Closure::fromCallable([$foo, $name . "bar"])->bindTo(new Foo)();
/PHP-8.2/Zend/tests/closures/
H A Dclosure_from_callable.inc58 return Closure::fromCallable([$this, 'privateInstanceFunc']);
73 return Closure::fromCallable([$this, 'publicInstanceFunc']);
78 return Closure::fromCallable([$this, 'publicInstanceFunc']);
83 return Closure::fromCallable('self::publicInstanceFunc');
99 return Closure::fromCallable([$this, 'privateInstanceFunc']);
114 return Closure::fromCallable('parent::publicInstanceFunc');
119 return Closure::fromCallable('self::publicInstanceFunc');
125 return Closure::fromCallable('self::protectedInstanceFunc');
130 return Closure::fromCallable('self::privateInstanceFunc');
176 return Closure::fromCallable([$foo, 'privateStaticFunction']);
[all …]
H A Dclosure_from_callable_lsb.phpt2 Testing Closure::fromCallable() functionality: Late static binding
15 Closure::fromCallable(['A', 'test'])();
16 Closure::fromCallable(['B', 'test'])();
H A Dclosure_from_callable_gc.phpt2 Closure::fromCallable() and GC
15 $fn = Closure::fromCallable([new Test, 'method2']);
20 $fn = Closure::fromCallable([new Test, 'method']);
H A Dclosure_from_callable_basic.phpt2 Testing Closure::fromCallable() functionality: Basic
9 $fn = Closure::fromCallable(['Foo', 'publicStaticFunction']);
13 $fn = Closure::fromCallable(['fOo', 'publicStaticfUNCTION']);
17 $fn = Closure::fromCallable('Foo::publicStaticFunction');
21 $fn = Closure::fromCallable([new Foo, 'publicInstanceFunc']);
25 $fn = Closure::fromCallable([new Foo, 'publicInstanceFunc']);
29 $fn = Closure::fromCallable('bar');
33 $fn = Closure::fromCallable('BAR');
37 $fn = Closure::fromCallable($closure);
41 $fn = Closure::fromCallable(new PublicInvocable);
[all …]
H A Dclosure_from_callable_rebinding.phpt2 Testing Closure::fromCallable() functionality: Rebinding
15 $fn = Closure::fromCallable([new A, 'method']);
H A Dclosure_from_callable_non_static_statically.phpt2 Testing Closure::fromCallable() functionality: Getting non-static method statically
12 $fn = Closure::fromCallable(['A', 'method']);
H A Dclosure_from_callable_error.phpt2 Testing Closure::fromCallable() functionality: Errors
10 $fn = Closure::fromCallable(['Foo', 'privateInstanceFunc']);
23 $fn = Closure::fromCallable('Foo::privateInstanceFunc');
35 $fn = Closure::fromCallable([new Foo, 'privateInstanceFunc']);
47 $fn = Closure::fromCallable([new SubFoo, 'privateInstanceFunc']);
59 $fn = Closure::fromCallable([new Foo, 'privateStaticFunction']);
71 $fn = Closure::fromCallable(['Foo', 'privateStaticFunction']);
83 $fn = Closure::fromCallable('Foo::privateStaticFunction');
95 $fn = Closure::fromCallable('Foo::nonExistentFunction');
107 $fn = Closure::fromCallable(['NonExistentClass', 'foo']);
[all …]
H A Dclosure_from_callable_reflection.phpt2 Testing Closure::fromCallable() functionality: Reflection
27 $closure = Closure::fromCallable($callable);
H A Dbug80929.phpt21 $this->listener = Closure::fromCallable([$this, $params]);
/PHP-8.2/ext/zend_test/tests/
H A Dobserver_closure_02.phpt20 $closure = \Closure::fromCallable($callable);
28 <!-- init Closure::fromCallable() -->
29 <Closure::fromCallable>
30 </Closure::fromCallable>
/PHP-8.2/ext/reflection/tests/
H A DReflectionFunction_getClosureCalledClass.phpt33 $d = \Closure::fromCallable($c);
39 $d = \Closure::fromCallable($c);
45 $d = \Closure::fromCallable($c);
51 $d = \Closure::fromCallable($c);
57 $d = \Closure::fromCallable($c);
/PHP-8.2/Zend/
H A Dzend_closures_arginfo.h32 ZEND_METHOD(Closure, fromCallable);
40 ZEND_ME(Closure, fromCallable, arginfo_class_Closure_fromCallable, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
H A Dzend_closures.stub.php23 public static function fromCallable(callable $callback): Closure {} function in Closure
H A Dzend_closures.c373 ZEND_METHOD(Closure, fromCallable) in ZEND_METHOD() argument

Completed in 34 milliseconds