Download src/php/php-src/tests/func/005a.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 461 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/func/005a.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/func/005a.phpt
-
curl -L -o 005a.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/func/005a.phpt
461 Bytes
| --TEST-- | |
| Testing register_shutdown_function() with timeout. (Bug: #21513) | |
| --SKIPIF-- | |
| if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); | |
| --FILE-- | |
| echo "Start\n"; | |
| function boo() | |
| { | |
| echo "Shutdown\n"; | |
| } | |
| register_shutdown_function("boo"); | |
| set_time_limit(1); | |
| /* infinite loop to simulate long processing */ | |
| for (;;) {} | |
| echo "End\n"; | |
| --EXPECTF-- | |
| Start | |
| Fatal error: Maximum execution time of 1 second exceeded in %s on line %d | |
| Shutdown | |