Download src/php/php-src/Zend/tests/constexpr/gh10014.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constexpr/gh10014.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/constexpr/gh10014.phpt
-
curl -L -o gh10014.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/constexpr/gh10014.phpt
326 Bytes
| --TEST-- | |
| GH-10014: Incorrect short-circuiting in constant expressions | |
| --FILE-- | |
| (+[[][2]?->y]->y) | |
| class y { | |
| } | |
| (new ReflectionClass(y::class))->getAttributes()[0]->newInstance(); | |
| --EXPECTF-- | |
| Warning: Undefined array key 2 in %s on line %d | |
| Warning: Attempt to read property "y" on array in %s on line %d | |