Download src/php/php-src/Zend/tests/constants/constants_009.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 247 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constants/constants_009.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/constants/constants_009.phpt
-
curl -L -o constants_009.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constants/constants_009.phpt
247 Bytes
| --TEST-- | |
| Accessing constants inside namespace | |
| --FILE-- | |
| namespace foo\x; | |
| const x = 2; | |
| class x { | |
| const x = 1; | |
| } | |
| var_dump(namespace\x, | |
| x::x, | |
| namespace\x::x); | |
| var_dump(defined('foo\x\x')); | |
| --EXPECT-- | |
| int(2) | |
| int(1) | |
| int(1) | |
| bool(true) | |