Download src/php/php-src/Zend/tests/constants/bug65291.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 373 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constants/bug65291.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/constants/bug65291.phpt
-
curl -L -o bug65291.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constants/bug65291.phpt
373 Bytes
| --TEST-- | |
| Bug #65291 - get_defined_constants() causes PHP to crash in a very limited case. | |
| --FILE-- | |
| trait TestTrait | |
| { | |
| public static function testStaticFunction() | |
| { | |
| return __CLASS__; | |
| } | |
| } | |
| class Tester | |
| { | |
| use TestTrait; | |
| } | |
| $foo = Tester::testStaticFunction(); | |
| get_defined_constants(); | |
| get_defined_constants(true); | |
| echo $foo; | |
| --EXPECT-- | |
| Tester | |