/PHP-8.4/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_call_bind.phpt | 2 Calling bindTo() on __call() closure 14 Closure::fromCallable([$foo, $name . "bar"])->bindTo(new Foo)(); 15 $foo->{$name . "bar"}(...)->bindTo(new Foo)();
|
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 | dynamic_class_const_fetch_cache_slot.phpt | 39 $c->bindTo(null, Foo::class)('BAR'); 40 $c->bindTo(null, Bar::class)('BAZ'); 41 $c->bindTo(null, Foo::class)('class'); 42 $c->bindTo(null, Bar::class)('class');
|
H A D | closure_063.phpt | 2 Closure::bindTo leaks with "fake" closure 8 Closure::fromCallable('foo')->bindTo(new stdClass);
|
H A D | closure_bindTo_preserves_used_variables.phpt | 2 Closure::bindTo() should preserve used variables 11 $fn = $fn->bindTo(null, null);
|
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 | closure_038.phpt | 33 $cb = $ca->bindTo($b, $b); 40 $cb = $ca->bindTo($b, 'B'); 45 $cb = $ca->bindTo($b, NULL);
|
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 | bug66811.phpt | 19 $g = $f->bindTo(null, A::class); 27 $bar = $foo->bindTo(null, A::class);
|
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);
|
/PHP-8.4/Zend/tests/asymmetric_visibility/ |
H A D | scope_rebinding.phpt | 2 Changing scope with Closure::bindTo() does not confuse asymmetric visibility 17 ($c->bindTo(null, Foo::class))(); 25 ($c->bindTo(null, Bar::class))();
|
/PHP-8.4/Zend/ |
H A D | zend_closures_arginfo.h | 29 ZEND_METHOD(Closure, bindTo); 36 ZEND_ME(Closure, bindTo, arginfo_class_Closure_bindTo, ZEND_ACC_PUBLIC)
|
H A D | zend_closures.stub.php | 19 public function bindTo(?object $newThis, object|string|null $newScope = "static"): ?Closure {} function in Closure
|
/PHP-8.4/Zend/tests/return_types/ |
H A D | 027.phpt | 10 var_dump($c->bindTo(null, 'B')(new A));
|
/PHP-8.4/ext/opcache/tests/jit/ |
H A D | gh16393.phpt | 14 })->bindTo($test, Test::class);
|