Download src/php/php-src/Zend/tests/constants/bug41633_3.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 369 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constants/bug41633_3.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/constants/bug41633_3.phpt
-
curl -L -o bug41633_3.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constants/bug41633_3.phpt
369 Bytes
| --TEST-- | |
| Bug #41633.3 (Crash instantiating classes with self-referencing constants) | |
| --FILE-- | |
| class Foo { | |
| const A = Foo::B; | |
| const B = Foo::A; | |
| } | |
| echo Foo::A; | |
| --EXPECTF-- | |
| Fatal error: Uncaught Error: Cannot declare self-referencing constant Foo::B in %s:%d | |
| Stack trace: | |
| #0 %s(%d): [constant expression]() | |
| #1 {main} | |
| thrown in %sbug41633_3.php on line %d | |