Download src/php/php-src/Zend/tests/constants/bug44827.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 439 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constants/bug44827.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/constants/bug44827.phpt
-
curl -L -o bug44827.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constants/bug44827.phpt
439 Bytes
| --TEST-- | |
| Bug #44827 (define() allows :: in constant names) | |
| --FILE-- | |
| try { | |
| define('foo::bar', 1); | |
| } catch (ValueError $exception) { | |
| echo $exception->getMessage() . "\n"; | |
| } | |
| try { | |
| define('::', 1); | |
| } catch (ValueError $exception) { | |
| echo $exception->getMessage() . "\n"; | |
| } | |
| --EXPECT-- | |
| define(): Argument #1 ($constant_name) cannot be a class constant | |
| define(): Argument #1 ($constant_name) cannot be a class constant | |