Download src/php/php-src/Zend/tests/constants/bug41633_2.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constants/bug41633_2.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/constants/bug41633_2.phpt
-
curl -L -o bug41633_2.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constants/bug41633_2.phpt
332 Bytes
| --TEST-- | |
| Bug #41633.2 (Undefined class constants must not be substituted by strings) | |
| --FILE-- | |
| class Foo { | |
| const A = self::B; | |
| } | |
| echo Foo::A."\n"; | |
| --EXPECTF-- | |
| Fatal error: Uncaught Error: Undefined constant self::B in %s:%d | |
| Stack trace: | |
| #0 %s(%d): [constant expression]() | |
| #1 {main} | |
| thrown in %sbug41633_2.php on line 3 | |