Download src/php/php-src/ext/opcache/tests/bug70207.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/bug70207.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/opcache/tests/bug70207.phpt
-
curl -L -o bug70207.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/bug70207.phpt
385 Bytes
| --TEST-- | |
| Bug #70207 Finally is broken with opcache | |
| --INI-- | |
| opcache.enable=1 | |
| opcache.enable_cli=1 | |
| opcache.optimization_level=-1 | |
| opcache.file_update_protection=0 | |
| --EXTENSIONS-- | |
| opcache | |
| --FILE-- | |
| function bar() { | |
| return "bar"; | |
| } | |
| function foo() { | |
| try { return bar(); } | |
| finally { | |
| @fopen("non-existent", 'r'); | |
| } | |
| } | |
| var_dump(foo()); | |
| --EXPECT-- | |
| string(3) "bar" | |