Download src/php/php-src/ext/opcache/tests/bug65559.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 437 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/bug65559.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/opcache/tests/bug65559.phpt
-
curl -L -o bug65559.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/bug65559.phpt
437 Bytes
| --TEST-- | |
| Bug #65559 (cache not cleared if changes occur while running) | |
| --INI-- | |
| opcache.enable=1 | |
| opcache.enable_cli=1 | |
| opcache.file_update_protection=2 | |
| --EXTENSIONS-- | |
| opcache | |
| --FILE-- | |
| $file = __DIR__ . "/bug6559.inc.php"; | |
| file_put_contents($file, '<?php return 1;'); | |
| $var = include $file; | |
| var_dump($var); | |
| file_put_contents($file, '<?php return 2;'); | |
| $var = include $file; | |
| var_dump($var); | |
| @unlink($file); | |
| --EXPECT-- | |
| int(1) | |
| int(2) | |