Download src/php/php-src/Zend/tests/fibers/backtrace-nested.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 526 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/fibers/backtrace-nested.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/fibers/backtrace-nested.phpt
-
curl -L -o backtrace-nested.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/fibers/backtrace-nested.phpt
526 Bytes
| --TEST-- | |
| Backtrace in nested function call | |
| --FILE-- | |
| function suspend_fiber(): void | |
| { | |
| \Fiber::suspend(); | |
| throw new Exception; | |
| } | |
| $fiber = new Fiber(function (): void { | |
| suspend_fiber(); | |
| }); | |
| $fiber->start(); | |
| $fiber->resume(); | |
| --EXPECTF-- | |
| Fatal error: Uncaught Exception in %sbacktrace-nested.php:%d | |
| Stack trace: | |
| #0 %sbacktrace-nested.php(%d): suspend_fiber() | |
| #1 [internal function]: {closure:%s:%d}() | |
| #2 %sbacktrace-nested.php(%d): Fiber->resume() | |
| #3 {main} | |
| thrown in %sbacktrace-nested.php on line %d | |