Download src/php/php-src/Zend/tests/closures/closure_023.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 230 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/closures/closure_023.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/closures/closure_023.phpt
-
curl -L -o closure_023.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/closures/closure_023.phpt
230 Bytes
| --TEST-- | |
| Closure 023: Closure declared in statically called method | |
| --FILE-- | |
| class foo { | |
| public static function bar() { | |
| $func = function() { echo "Done"; }; | |
| $func(); | |
| } | |
| } | |
| foo::bar(); | |
| --EXPECT-- | |
| Done | |