/PHP-8.1/Zend/ |
H A D | zend_fibers_arginfo.h | 41 ZEND_METHOD(Fiber, __construct); 42 ZEND_METHOD(Fiber, start); 43 ZEND_METHOD(Fiber, resume); 44 ZEND_METHOD(Fiber, throw); 45 ZEND_METHOD(Fiber, isStarted); 46 ZEND_METHOD(Fiber, isSuspended); 47 ZEND_METHOD(Fiber, isRunning); 48 ZEND_METHOD(Fiber, isTerminated); 49 ZEND_METHOD(Fiber, getReturn); 50 ZEND_METHOD(Fiber, getCurrent); [all …]
|
/PHP-8.1/Zend/tests/fibers/ |
H A D | fiber-get-current.phpt | 2 Fiber::getCurrent() 6 var_dump(Fiber::getCurrent()); 8 $fiber = new Fiber(function (): void { 9 var_dump(Fiber::getCurrent()); 17 object(Fiber)#%d (0) {
|
H A D | fiber-status.phpt | 2 Fiber status methods 6 $fiber = new Fiber(function (): void { 7 $fiber = Fiber::getCurrent(); 8 echo "\nWithin Fiber:\n"; 14 $nested = new Fiber(function () use ($fiber): void { 15 echo "\nWithin Nested Fiber:\n"; 20 Fiber::suspend(); 25 Fiber::suspend(); 58 Within Fiber: 64 Within Nested Fiber:
|
H A D | resume-previous-fiber.phpt | 6 $fiber = new Fiber(function (): void { 7 $fiber1 = Fiber::getCurrent(); 9 $fiber2 = new Fiber(function () use ($fiber1): void { 22 #0 %sresume-previous-fiber.php(%d): Fiber->resume() 24 #2 %sresume-previous-fiber.php(%d): Fiber->start() 26 #4 %sresume-previous-fiber.php(%d): Fiber->start()
|
H A D | fiber-in-shutdown-function.phpt | 2 Fiber in shutdown function 7 $fiber = new Fiber(function (): int { 8 Fiber::suspend(1); 9 Fiber::suspend(2);
|
H A D | throw-in-multiple-destroyed-fibers-after-shutdown.phpt | 6 $fiber = new Fiber(function (): void { 7 $fiber1 = new Fiber(function (): void { 9 Fiber::suspend(); 17 $fiber2 = new Fiber(function (): void { 19 Fiber::suspend(); 27 Fiber::suspend();
|
H A D | failing-nested-fiber.phpt | 6 $fiber = new Fiber(function (): void { 7 $fiber = new Fiber(function (int $x, int $y): void { 8 Fiber::suspend($x + $y); 26 #1 %sfailing-nested-fiber.php(%d): Fiber->resume(3) 28 #3 %sfailing-nested-fiber.php(%d): Fiber->start()
|
H A D | gh9735-001.phpt | 2 Bug GH-9735 001 (Fiber stack variables do not participate in cycle collector) 12 $fiber = new Fiber(function () { 15 $fiber = Fiber::getCurrent(); 17 Fiber::suspend();
|
H A D | start-arguments.phpt | 6 $fiber = new Fiber(function (int $x): int { 7 return $x + Fiber::suspend($x); 14 $fiber = new Fiber(function (int $x): int { 15 return $x + Fiber::suspend($x); 27 #1 %sstart-arguments.php(%d): Fiber->start('test')
|
H A D | gh9735-002.phpt | 2 Bug GH-9735 002 (Fiber stack variables do not participate in cycle collector) 13 Fiber::suspend(); 16 $fiber = new Fiber(function () { 19 $fiber = Fiber::getCurrent();
|
H A D | gh9735-003.phpt | 2 Bug GH-9735 003 (Fiber stack variables do not participate in cycle collector) 13 $fiber = Fiber::getCurrent(); 14 Fiber::suspend(); 17 $fiber = new Fiber(function () {
|
H A D | gh9735-004.phpt | 2 Bug GH-9735 004 (Fiber stack variables do not participate in cycle collector) 13 $fiber = Fiber::getCurrent(); 14 Fiber::suspend(); 17 $fiber = new Fiber(function () {
|
H A D | gh9735-005.phpt | 2 Bug GH-9735 005 (Fiber stack variables do not participate in cycle collector) 13 Fiber::suspend(); 16 $fiber = new Fiber(function () { 19 $fiber = Fiber::getCurrent();
|
H A D | gh9735-008.phpt | 2 Bug GH-9735 008 (Fiber stack variables do not participate in cycle collector) 16 Fiber::suspend(); 19 $fiber = new Fiber(function () { 22 f(Fiber::getCurrent(), g());
|
H A D | gh9735-009.phpt | 2 Bug GH-9735 009 (Fiber stack variables do not participate in cycle collector) 16 g(Fiber::suspend()); 19 $fiber = new Fiber(function () { 22 f(Fiber::getCurrent(), g());
|
H A D | fatal-error-in-nested-fiber.phpt | 6 $fiber = new Fiber(function (): void { 7 $fiber = new Fiber(function (): void { 8 \Fiber::suspend(2); 14 \Fiber::suspend(1);
|
H A D | get-return-from-unstarted-fiber.phpt | 2 Fiber::getReturn() from unstarted fiber 6 $fiber = new Fiber(fn() => Fiber::suspend(1)); 14 #0 %sget-return-from-unstarted-fiber.php(%d): Fiber->getReturn()
|
H A D | gh9735-006.phpt | 2 Bug GH-9735 006 (Fiber stack variables do not participate in cycle collector) 16 Fiber::suspend(); 19 $fiber = new Fiber(function () { 22 $fiber = Fiber::getCurrent();
|
H A D | gh9735-007.phpt | 2 Bug GH-9735 007 (Fiber stack variables do not participate in cycle collector) 13 $fiber = Fiber::getCurrent(); 18 Fiber::suspend(); 21 $fiber = new Fiber(function () {
|
H A D | fatal-error-with-multiple-fibers.phpt | 6 $fiber1 = new Fiber(function (): void { 8 \Fiber::suspend(1); 14 $fiber2 = new Fiber(function (): void { 15 \Fiber::suspend(2);
|
H A D | get-return-in-unfinished-fiber.phpt | 2 Fiber::getReturn() in unfinished fiber 6 $fiber = new Fiber(fn() => Fiber::suspend(1)); 18 #0 %sget-return-in-unfinished-fiber.php(%d): Fiber->getReturn()
|
/PHP-8.1/ext/zend_test/tests/ |
H A D | fiber_test_06.phpt | 2 Fiber interaction with custom fiber implementation 6 8 $fiber = new Fiber(function (): void { 10 Fiber::suspend(20); 11 echo "unreachable\n"; // Fiber is not resumed. 16 $fiber = new Fiber(function (): void { 17 var_dump(Fiber::suspend(1)); // string(1) "1" 18 var_dump(Fiber::suspend(2)); // string(1) "2"
|
H A D | observer_fiber_03.phpt | 12 $fiber = new Fiber(function (): void { 13 Fiber::suspend(); 16 $fiber = new Fiber(function (): void { 17 Fiber::suspend(); 19 Fiber::suspend(); 25 Fiber::suspend(); 30 Fiber::suspend();
|
/PHP-8.1/ext/reflection/tests/ |
H A D | ReflectionFiber_bug_gh11121_1.phpt | 6 Fiber::suspend(); 10 (new Fiber(function() { 16 $f = new Fiber(function() { f(); max(...[1,2,3,4,5,6,7,8,9,10,11,12]); g(); }); 32 string(5) "Fiber" 34 object(Fiber)#3 (0) {
|
H A D | ReflectionFiber_bug_gh11121_2.phpt | 7 Fiber::suspend(); 11 (new Fiber(function() { 17 $f = new Fiber(function() { f(); g(); }); 33 string(5) "Fiber" 35 object(Fiber)#3 (0) {
|