Download src/php/php-src/ext/opcache/tests/bug70111.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 284 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/bug70111.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/opcache/tests/bug70111.phpt
-
curl -L -o bug70111.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/bug70111.phpt
284 Bytes
| --TEST-- | |
| Bug #70111 (Segfault when a function uses both an explicit return type and an explicit cast) | |
| --INI-- | |
| opcache.enable=1 | |
| opcache.enable_cli=1 | |
| --EXTENSIONS-- | |
| opcache | |
| --FILE-- | |
| var_dump(foo()); | |
| function foo() : string { | |
| return (string) 42; | |
| } | |
| --EXPECT-- | |
| string(2) "42" | |