Download src/php/php-src/Zend/tests/errmsg/errmsg_005.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 284 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/errmsg/errmsg_005.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/errmsg/errmsg_005.phpt
-
curl -L -o errmsg_005.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/errmsg/errmsg_005.phpt
284 Bytes
| --TEST-- | |
| errmsg: can't use method return value in write context | |
| --FILE-- | |
| class test { | |
| function foo() { | |
| return "blah"; | |
| } | |
| } | |
| $t = new test; | |
| $t->foo() = 1; | |
| echo "Done\n"; | |
| --EXPECTF-- | |
| Fatal error: Can't use method return value in write context in %s on line %d | |