Download src/php/php-src/Zend/tests/errmsg/errmsg_025.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/errmsg/errmsg_025.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/errmsg/errmsg_025.phpt
-
curl -L -o errmsg_025.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/errmsg/errmsg_025.phpt
331 Bytes
| --TEST-- | |
| errmsg: cannot inherit previously inherited constant | |
| --FILE-- | |
| interface test1 { | |
| const FOO = 10; | |
| } | |
| interface test2 { | |
| const FOO = 10; | |
| } | |
| class test implements test1, test2 { | |
| } | |
| echo "Done\n"; | |
| --EXPECTF-- | |
| Fatal error: Class test inherits both test1::FOO and test2::FOO, which is ambiguous in %s on line %d | |