Download src/php/php-src/Zend/tests/errmsg/errmsg_003.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 261 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/errmsg/errmsg_003.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/errmsg/errmsg_003.phpt
-
curl -L -o errmsg_003.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/errmsg/errmsg_003.phpt
261 Bytes
| --TEST-- | |
| errmsg: cannot reassign $this (by ref) | |
| --FILE-- | |
| class test { | |
| function foo() { | |
| $a = new test; | |
| $this = &$a; | |
| } | |
| } | |
| $t = new test; | |
| $t->foo(); | |
| echo "Done\n"; | |
| --EXPECTF-- | |
| Fatal error: Cannot re-assign $this in %s on line %d | |