Searched refs:value (Results 1 – 20 of 20) sorted by relevance
/ext-fiber/tests/ |
H A D | get-return.phpt | 2 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 D | resume.phpt | 9 $value = Fiber::suspend(1); 10 var_dump($value); 13 $value = $fiber->start(); 14 var_dump($value); 15 $fiber->resume($value + 1);
|
H A D | failing-fiber.phpt | 13 $value = $fiber->start(); 14 var_dump($value); 16 $fiber->resume($value);
|
H A D | catch.phpt | 16 $value = $fiber->start(); 17 var_dump($value);
|
H A D | failing-nested-fiber.phpt | 14 $value = $fiber->start(1, 2); 15 var_dump($value); 16 $fiber->resume($value);
|
H A D | throw.phpt | 12 $value = $fiber->start(); 13 var_dump($value);
|
H A D | suspend-in-nested-function.phpt | 14 $value = suspend(); 15 return Fiber::suspend($value);
|
H A D | backtrace-deep-nesting.phpt | 11 $value = \Fiber::suspend($level); 12 failing_function($value); 18 function failing_function(string $value): never
|
H A D | suspend-outside-fiber.phpt | 8 $value = Fiber::suspend(1);
|
H A D | get-return-from-unstarted-fiber.phpt | 14 Fatal error: Uncaught FiberError: Cannot get fiber return value: The fiber has not been started in …
|
H A D | get-return-in-unfinished-fiber.phpt | 18 Fatal error: Uncaught FiberError: Cannot get fiber return value: The fiber has not returned in %sge…
|
H A D | get-return-after-throwing.phpt | 22 Fatal error: Uncaught FiberError: Cannot get fiber return value: The fiber threw an exception in %s…
|
/ext-fiber/examples/ |
H A D | 001-simple.php | 4 $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 D | Fiber.php | 26 * @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 D | fiber.stub.php | 12 public function resume(mixed $value = null): mixed {} argument 28 public static function suspend(mixed $value = null): mixed { } argument
|
H A D | README.md | 51 * 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 D | fiber.h | 88 zval value; member
|
H A D | fiber_arginfo.h | 13 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, IS_MIXED, 0, "null")
|
/ext-fiber/src/ |
H A D | fiber.c | 356 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 D | make_i386_ms_pe_masm.asm | 26 _exit PROTO, value:SDWORD
|
Completed in 38 milliseconds