Download src/php/php-src/Zend/tests/constants/bug76430.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 275 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constants/bug76430.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/constants/bug76430.phpt
-
curl -L -o bug76430.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constants/bug76430.phpt
275 Bytes
| --TEST-- | |
| Bug #76430: __METHOD__ inconsistent outside of method | |
| --FILE-- | |
| class Foo { | |
| const X = __METHOD__; | |
| } | |
| function foo() { | |
| class Bar { | |
| const X = __METHOD__; | |
| } | |
| } | |
| foo(); | |
| var_dump(Foo::X); | |
| var_dump(Bar::X); | |
| --EXPECT-- | |
| string(0) "" | |
| string(0) "" | |