Download src/php/php-src/ext/opcache/tests/opt/dce_010.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 213 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/opt/dce_010.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/opcache/tests/opt/dce_010.phpt
-
curl -L -o dce_010.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/opt/dce_010.phpt
213 Bytes
| --TEST-- | |
| Incorrect DCE of FREE of COALESCE | |
| --FILE-- | |
| function test(?string $str) { | |
| $str ?? $str = ''; | |
| return strlen($str); | |
| } | |
| $foo = 'foo'; | |
| $foo .= 'bar'; | |
| var_dump(test($foo)); | |
| --EXPECT-- | |
| int(6) | |