Download src/php/php-src/Zend/tests/constexpr/gh7771_1.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 377 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constexpr/gh7771_1.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/constexpr/gh7771_1.phpt
-
curl -L -o gh7771_1.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constexpr/gh7771_1.phpt
377 Bytes
| --TEST-- | |
| GH-7771 (Incorrect file/line for class constant expression exceptions) | |
| --FILE-- | |
| include __DIR__ . '/gh7771_1_definition.inc'; | |
| new Foo(); | |
| --EXPECTF-- | |
| Fatal error: Uncaught Error: Class "NonExistent" not found in %sgh7771_1_definition.inc:4 | |
| Stack trace: | |
| #0 %sgh7771_1.php(5): [constant expression]() | |
| #1 {main} | |
| thrown in %sgh7771_1_definition.inc on line 4 | |