/PHP-8.0/Zend/tests/ |
H A D | closure_061.phpt | 114 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 D | closure_062.phpt | 12 $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 D | closure_044.phpt | 25 $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 D | closure_043.phpt | 25 $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 D | closure_041.phpt | 48 $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 D | closure_040.phpt | 28 $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 D | bug78658.phpt | 2 Bug #78658: Memory corruption using Closure::bindTo() 10 $c->bindTo(new stdClass, $scope);
|
H A D | closure_046.phpt | 28 $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 D | bug70681.phpt | 7 $c = $c->bindTo(null); 10 $c = $c->bindTo(null);
|
H A D | bug66811.phpt | 19 $g = $f->bindTo(null, A::class); 27 $bar = $foo->bindTo(null, A::class);
|
H A D | closure_039.phpt | 33 $cb = $ca->bindTo($b, $b); 40 $cb = $ca->bindTo($b, 'B'); 45 $cb = $ca->bindTo($b, NULL);
|
H A D | closure_038.phpt | 33 $cb = $ca->bindTo($b, $b); 40 $cb = $ca->bindTo($b, 'B'); 45 $cb = $ca->bindTo($b, NULL);
|
H A D | bug70685.phpt | 9 $c = $c->bindTo(new cls); 13 $c = $c->bindTo(new SplStack, 'cls');
|
H A D | closure_042.phpt | 7 $d = $c->bindTo(new stdClass); 13 $d = $c->bindTo(new stdClass, NULL);
|
H A D | closure_057.phpt | 14 return $b->bindTo(new A());
|
H A D | closure_045.phpt | 13 $a->bindTo(new A);
|
H A D | no_class_const_propagation_in_closures.phpt | 21 var_dump($f->bindTo(new B, 'B')());
|
H A D | closure_036.phpt | 22 $cb = $ca->bindTo($b);
|
H A D | bug75079_2.phpt | 26 var_dump($f->bindTo($a, A::CLASS)()());
|
/PHP-8.0/Zend/ |
H A D | zend_closures_arginfo.h | 30 ZEND_METHOD(Closure, bindTo); 38 ZEND_ME(Closure, bindTo, arginfo_class_Closure_bindTo, ZEND_ACC_PUBLIC)
|
H A D | zend_closures.stub.php | 15 public function bindTo(?object $newThis, object|string|null $newScope = "static"): ?Closure {} function in Closure
|
H A D | zend_closures.c | 251 ZEND_METHOD(Closure, bindTo) in ZEND_METHOD() argument
|
/PHP-8.0/Zend/tests/return_types/ |
H A D | 027.phpt | 10 var_dump($c->bindTo(null, 'B')(new A));
|
/PHP-8.0/Zend/tests/attributes/ |
H A D | 017_closure_scope.phpt | 27 $ref = new \ReflectionFunction(C1::foo()->bindTo(null, Test1::class));
|
/PHP-8.0/Zend/tests/type_declarations/ |
H A D | static_type_return.phpt | 66 $test = $test->bindTo($a);
|