Download src/php/php-src/Zend/tests/constants/bug49472.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 364 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constants/bug49472.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/constants/bug49472.phpt
-
curl -L -o bug49472.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constants/bug49472.phpt
364 Bytes
| --TEST-- | |
| Bug #49472 (Constants defined in Interfaces can be overridden) | |
| --FILE-- | |
| interface ia { | |
| const c = 'Sea'; | |
| const y = 2; | |
| } | |
| class Foo implements ia { | |
| } | |
| class FooBar extends Foo implements ia { | |
| const x = 1; | |
| const c = 'Ocean'; | |
| public function show() { | |
| return ia::c; | |
| } | |
| } | |
| new FooBar; | |
| ===DONE=== | |
| --EXPECT-- | |
| ===DONE=== | |