Download src/php/php-src/ext/pcntl/tests/bug81577_2.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 427 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcntl/tests/bug81577_2.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pcntl/tests/bug81577_2.phpt
-
curl -L -o bug81577_2.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcntl/tests/bug81577_2.phpt
427 Bytes
| --TEST-- | |
| Bug #81577: (Exceptions in interrupt handlers: ADD_ARRAY_ELEMENT) | |
| --EXTENSIONS-- | |
| pcntl | |
| posix | |
| --FILE-- | |
| pcntl_async_signals(true); | |
| pcntl_signal(SIGTERM, function ($signo) {}); | |
| try { | |
| $a = [1, posix_kill(posix_getpid(), SIGTERM), 2]; | |
| } catch (Throwable $ex) { | |
| echo get_class($ex) , " : " , $ex->getMessage() , "\n"; | |
| } | |
| var_dump($a); | |
| --EXPECT-- | |
| array(3) { | |
| [0]=> | |
| int(1) | |
| [1]=> | |
| bool(true) | |
| [2]=> | |
| int(2) | |
| } | |