Download src/php/php-src/Zend/tests/constants/bug51791.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 267 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constants/bug51791.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/constants/bug51791.phpt
-
curl -L -o bug51791.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constants/bug51791.phpt
267 Bytes
| --TEST-- | |
| Bug #51791 (constant() failed to check undefined constant and php interpreter stopped) | |
| --FILE-- | |
| class A { | |
| const B = 1; | |
| } | |
| try { | |
| constant('A::B1'); | |
| } catch (Error $e) { | |
| echo $e->getMessage(), "\n"; | |
| } | |
| --EXPECT-- | |
| Undefined constant A::B1 | |