Download src/php/php-src/Zend/tests/constants/bug69676_2.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 350 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constants/bug69676_2.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/constants/bug69676_2.phpt
-
curl -L -o bug69676_2.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constants/bug69676_2.phpt
350 Bytes
| --TEST-- | |
| Bug #69676: Resolution of self::FOO in class constants not correct (variation) | |
| --FILE-- | |
| class Foo { | |
| const A = 'Foo::A'; | |
| const B = self::A . ' and ' . self::C; | |
| const C = 'Foo::C'; | |
| } | |
| class Bar extends Foo { | |
| const A = 'Bar::A'; | |
| const C = 'Bar::C'; | |
| } | |
| var_dump(Bar::B); | |
| --EXPECT-- | |
| string(17) "Foo::A and Foo::C" | |