Download src/php/php-src/Zend/tests/declare/declare_005.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 203 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/declare/declare_005.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/declare/declare_005.phpt
-
curl -L -o declare_005.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/declare/declare_005.phpt
203 Bytes
| --TEST-- | |
| Testing declare statement with ticks | |
| --FILE-- | |
| register_tick_function(function () { echo "tick\n"; }); | |
| function foo() { } | |
| declare(ticks=1) { | |
| $statement; | |
| foo(); | |
| } | |
| --EXPECT-- | |
| tick | |
| tick | |