Download src/php/php-src/Zend/tests/constexpr/gh10356.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 363 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constexpr/gh10356.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/constexpr/gh10356.phpt
-
curl -L -o gh10356.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constexpr/gh10356.phpt
363 Bytes
| --TEST-- | |
| GH-10356: Incorrect line number of constant in constant expression | |
| --FILE-- | |
| final class Foo { | |
| public static $foo = [ | |
| 'foo' => DOES_NOT_EXIST, | |
| ]; | |
| } | |
| new Foo(); | |
| --EXPECTF-- | |
| Fatal error: Uncaught Error: Undefined constant "DOES_NOT_EXIST" in %s:5 | |
| Stack trace: | |
| #0 %s(%d): [constant expression]() | |
| #1 {main} | |
| thrown in %s on line 5 | |