Home
last modified time | relevance | path

Searched refs:value (Results 1 – 20 of 20) sorted by relevance

/ext-fiber/tests/
H A Dget-return.phpt2 Test fiber return value
9 $value = Fiber::suspend("x");
10 return $value;
13 $value = $fiber->start();
14 var_dump($value);
15 var_dump($fiber->resume($value . "y"));
H A Dresume.phpt9 $value = Fiber::suspend(1);
10 var_dump($value);
13 $value = $fiber->start();
14 var_dump($value);
15 $fiber->resume($value + 1);
H A Dfailing-fiber.phpt13 $value = $fiber->start();
14 var_dump($value);
16 $fiber->resume($value);
H A Dcatch.phpt16 $value = $fiber->start();
17 var_dump($value);
H A Dfailing-nested-fiber.phpt14 $value = $fiber->start(1, 2);
15 var_dump($value);
16 $fiber->resume($value);
H A Dthrow.phpt12 $value = $fiber->start();
13 var_dump($value);
H A Dsuspend-in-nested-function.phpt14 $value = suspend();
15 return Fiber::suspend($value);
H A Dbacktrace-deep-nesting.phpt11 $value = \Fiber::suspend($level);
12 failing_function($value);
18 function failing_function(string $value): never
H A Dsuspend-outside-fiber.phpt8 $value = Fiber::suspend(1);
H A Dget-return-from-unstarted-fiber.phpt14 Fatal error: Uncaught FiberError: Cannot get fiber return value: The fiber has not been started in …
H A Dget-return-in-unfinished-fiber.phpt18 Fatal error: Uncaught FiberError: Cannot get fiber return value: The fiber has not returned in %sge…
H A Dget-return-after-throwing.phpt22 Fatal error: Uncaught FiberError: Cannot get fiber return value: The fiber threw an exception in %s…
/ext-fiber/examples/
H A D001-simple.php4 $value = Fiber::suspend('fiber'); variable
5 echo "Value used to resume fiber: ", $value, "\n";
8 $value = $fiber->start(); variable
10 echo "Value from fiber suspending: ", $value, "\n";
/ext-fiber/stubs/
H A DFiber.php26 * @param mixed $value
33 public function resume(mixed $value = null): mixed {} argument
85 * @param mixed $value Value to return from {@see Fiber::resume()} or {@see Fiber::throw()}.
92 public static function suspend(mixed $value = null): mixed {} argument
/ext-fiber/
H A Dfiber.stub.php12 public function resume(mixed $value = null): mixed {} argument
28 public static function suspend(mixed $value = null): mixed { } argument
H A DREADME.md51 * Resumes the fiber, returning the given value from {@see Fiber::suspend()}.
54 * @param mixed $value
61 public function resume(mixed $value = null): mixed {}
97 …* @return mixed Return value of the fiber callback. NULL is returned if the fiber does not have a …
113 * @param mixed $value Value to return from {@see Fiber::resume()} or {@see Fiber::throw()}.
120 public static function suspend(mixed $value = null): mixed {}
126 … `Fiber->resume()`, or `Fiber->throw()`. The value passed to `Fiber::suspend()` is used as the ret…
130 * returning a value from `Fiber::suspend()` using `Fiber->resume()`
133 …er->getReturn()` returns the value returned from a terminated fiber (`NULL` is returned if the fib…
196 …cal memory is used only on demand (if it needs to be allocated to a stack value) on most platforms…
H A Dfiber.h88 zval value; member
H A Dfiber_arginfo.h13 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, IS_MIXED, 0, "null")
/ext-fiber/src/
H A Dfiber.c356 ZVAL_UNDEF(&fiber->value); in ZEND_METHOD()
366 Z_PARAM_ZVAL(value); in ZEND_METHOD()
381 if (value) { in ZEND_METHOD()
382 ZVAL_COPY(&fiber->value, value); in ZEND_METHOD()
384 ZVAL_NULL(&fiber->value); in ZEND_METHOD()
416 ZVAL_UNDEF(&fiber->value); in ZEND_METHOD()
422 zval *value = NULL; in ZEND_METHOD() local
426 Z_PARAM_ZVAL(value); in ZEND_METHOD()
436 if (value) { in ZEND_METHOD()
437 ZVAL_COPY(&fiber->value, value); in ZEND_METHOD()
[all …]
/ext-fiber/boost/asm/
H A Dmake_i386_ms_pe_masm.asm26 _exit PROTO, value:SDWORD

Completed in 24 milliseconds