Home
last modified time | relevance | path

Searched refs:bindTo (Results 1 – 25 of 35) sorted by relevance

12

/PHP-8.2/Zend/tests/
H A Dclosure_061.phpt114 bindTo(null, null):
117 bindTo(new Cls, null):
123 bindTo(null, Cls::class):
135 bindTo(null, null):
138 bindTo(new Cls, null):
159 bindTo(new Cls, null):
165 bindTo(null, null):
189 bindTo(new Cls, null):
210 bindTo(null, null):
225 bindTo(null, null):
[all …]
H A Dclosure_062.phpt12 $fn->bindTo(null);
17 $fn->bindTo(null);
22 $fn->bindTo(null);
30 $fn->bindTo(null);
35 $fn->bindTo(null);
40 $fn->bindTo(null);
H A Dclosure_044.phpt25 $d = $nonstaticUnscoped->bindTo(null, null); $d(); echo "\n";
26 $d = $nonstaticScoped->bindTo(null, null); var_dump($d); echo "\n";
29 $d = $nonstaticUnscoped->bindTo(new A, null); $d(); echo "\n";
30 $d = $nonstaticScoped->bindTo(new A, null); $d(); echo "\n";
33 $d = $nonstaticUnscoped->bindTo(null, 'A'); $d(); echo "\n";
34 $d = $nonstaticScoped->bindTo(null, 'A'); var_dump($d); echo "\n";
37 $d = $nonstaticUnscoped->bindTo(new A, 'A'); $d(); echo "\n";
38 $d = $nonstaticScoped->bindTo(new A, 'A'); $d(); echo "\n";
H A Dclosure_call_bind.phpt2 Calling bindTo() on __call() closure
14 Closure::fromCallable([$foo, $name . "bar"])->bindTo(new Foo)();
15 $foo->{$name . "bar"}(...)->bindTo(new Foo)();
H A Dclosure_043.phpt25 $d = $staticUnscoped->bindTo(null, null); $d(); echo "\n";
26 $d = $staticScoped->bindTo(null, null); $d(); echo "\n";
29 $d = $staticUnscoped->bindTo(new A, null);
30 $d = $staticScoped->bindTo(new A, null);
33 $d = $staticUnscoped->bindTo(null, 'A'); $d(); echo "\n";
34 $d = $staticScoped->bindTo(null, 'A'); $d(); echo "\n";
37 $d = $staticUnscoped->bindTo(new A, 'A');
38 $d = $staticScoped->bindTo(new A, 'A');
H A Dclosure_041.phpt48 $d = $staticUnscoped->bindTo(null); $d(); echo "\n";
49 $d = $nonstaticUnscoped->bindTo(null); $d(); echo "\n";
50 $d = $staticScoped->bindTo(null); $d(); echo "\n";
51 $d = $nonstaticScoped->bindTo(null); var_dump($d); echo "\n";
54 $d = $staticUnscoped->bindTo(new A);
55 $d = $nonstaticUnscoped->bindTo(new A); $d(); echo " (should be scoped to dummy class)\n";
56 $d = $staticScoped->bindTo(new A);
57 $d = $nonstaticScoped->bindTo(new A); $d(); echo "\n";
60 $d = $nonstaticUnscoped->bindTo(new B); $d(); echo " (should be scoped to dummy class)\n";
61 $d = $nonstaticScoped->bindTo(new B); $d(); echo "\n";
H A Dclosure_063.phpt2 Closure::bindTo leaks with "fake" closure
8 Closure::fromCallable('foo')->bindTo(new stdClass);
H A Dclosure_bindTo_preserves_used_variables.phpt2 Closure::bindTo() should preserve used variables
11 $fn = $fn->bindTo(null, null);
H A Dclosure_040.phpt28 $ca->bindTo($a, array());
33 $cas->bindTo($a, 'A');
37 Closure::bindTo(): Argument #2 ($newScope) must be of type object|string|null, array given
H A Dbug78658.phpt2 Bug #78658: Memory corruption using Closure::bindTo()
10 $c->bindTo(new stdClass, $scope);
H A Dclosure_046.phpt28 $d = $nonstaticUnscoped->bindTo(null, "static"); $d(); echo "\n";
29 $d = $nonstaticScoped->bindTo(null, "static"); var_dump($d); echo "\n";
32 $d = $nonstaticUnscoped->bindTo(new A, "static"); $d(); echo "\n";
33 $d = $nonstaticScoped->bindTo(new A, "static"); $d(); echo "\n";
36 $d = $nonstaticScoped->bindTo(new B, "static"); $d(); echo "\n";
H A Dbug70681.phpt7 $c = $c->bindTo(null);
10 $c = $c->bindTo(null);
H A Dclosure_038.phpt33 $cb = $ca->bindTo($b, $b);
40 $cb = $ca->bindTo($b, 'B');
45 $cb = $ca->bindTo($b, NULL);
H A Dclosure_039.phpt33 $cb = $ca->bindTo($b, $b);
40 $cb = $ca->bindTo($b, 'B');
45 $cb = $ca->bindTo($b, NULL);
H A Dbug66811.phpt19 $g = $f->bindTo(null, A::class);
27 $bar = $foo->bindTo(null, A::class);
H A Dbug70685.phpt9 $c = $c->bindTo(new cls);
13 $c = $c->bindTo(new SplStack, 'cls');
H A Dclosure_042.phpt7 $d = $c->bindTo(new stdClass);
13 $d = $c->bindTo(new stdClass, NULL);
H A Dclosure_057.phpt14 return $b->bindTo(new A());
H A Dclosure_045.phpt13 $a->bindTo(new A);
H A Dno_class_const_propagation_in_closures.phpt21 var_dump($f->bindTo(new B, 'B')());
H A Dclosure_036.phpt22 $cb = $ca->bindTo($b);
/PHP-8.2/Zend/
H A Dzend_closures_arginfo.h30 ZEND_METHOD(Closure, bindTo);
38 ZEND_ME(Closure, bindTo, arginfo_class_Closure_bindTo, ZEND_ACC_PUBLIC)
H A Dzend_closures.stub.php19 public function bindTo(?object $newThis, object|string|null $newScope = "static"): ?Closure {} function in Closure
/PHP-8.2/Zend/tests/return_types/
H A D027.phpt10 var_dump($c->bindTo(null, 'B')(new A));
/PHP-8.2/ext/opcache/tests/jit/
H A Dgh16393.phpt14 })->bindTo($test, Test::class);

Completed in 17 milliseconds

12