Download src/php/php-src/Zend/tests/errmsg/errmsg_023.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 293 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/errmsg/errmsg_023.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/errmsg/errmsg_023.phpt
-
curl -L -o errmsg_023.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/errmsg/errmsg_023.phpt
293 Bytes
| --TEST-- | |
| errmsg: access level must be the same or weaker | |
| --FILE-- | |
| class test1 { | |
| protected $var; | |
| } | |
| class test extends test1 { | |
| private $var; | |
| } | |
| echo "Done\n"; | |
| --EXPECTF-- | |
| Fatal error: Access level to test::$var must be protected (as in class test1) or weaker in %s on line %d | |