Download src/php/php-src/Zend/tests/errmsg/errmsg_013.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 290 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/errmsg/errmsg_013.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/errmsg/errmsg_013.phpt
-
curl -L -o errmsg_013.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/errmsg/errmsg_013.phpt
290 Bytes
| --TEST-- | |
| errmsg: default value for parameters with array type can only be an array or null | |
| --FILE-- | |
| <?php | |
| class test { | |
| function foo(array $a = "s") { | |
| } | |
| } | |
| echo "Done\n"; | |
| ?> | |
| --EXPECTF-- | |
| Fatal error: Cannot use string as default value for parameter $a of type array in %s on line %d | |