Download src/php/php-src/ext/opcache/tests/bug71127.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 473 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/bug71127.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/opcache/tests/bug71127.phpt
-
curl -L -o bug71127.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/bug71127.phpt
473 Bytes
| --TEST-- | |
| Bug #71127 (Define in auto_prepend_file is overwrite) | |
| --INI-- | |
| opcache.enable=1 | |
| opcache.enable_cli=1 | |
| opcache.optimization_level=0x7FFFBFFF | |
| --EXTENSIONS-- | |
| opcache | |
| --FILE-- | |
| $file = __DIR__ . "/bug71127.inc"; | |
| file_put_contents($file, "<?php define('FOO', 'bad'); echo FOO;?>"); | |
| define("FOO", "okey"); | |
| include($file); | |
| --CLEAN-- | |
| @unlink(__DIR__ . "/bug71127.inc"); | |
| --EXPECTF-- | |
| Warning: Constant FOO already defined in %sbug71127.inc on line %d | |
| okey | |