Download src/php/php-src/ext/opcache/tests/bug72014.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 569 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/bug72014.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/opcache/tests/bug72014.phpt
-
curl -L -o bug72014.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/bug72014.phpt
569 Bytes
| --TEST-- | |
| Bug #72014 (Including a file with anonymous classes multiple times leads to fatal error) | |
| --INI-- | |
| opcache.enable=1 | |
| opcache.enable_cli=1 | |
| opcache.file_update_protection=0 | |
| --EXTENSIONS-- | |
| opcache | |
| --FILE-- | |
| file_put_contents(__DIR__ . "/bug72014.annon.php", <<<PHP | |
| <?php | |
| \$a = new class() { public \$testvar = "Foo\n"; }; | |
| echo \$a->testvar; | |
| PHP | |
| ); | |
| include(__DIR__ . "/bug72014.annon.php"); | |
| include(__DIR__ . "/bug72014.annon.php"); | |
| include(__DIR__ . "/bug72014.annon.php"); | |
| --CLEAN-- | |
| @unlink(__DIR__ . "/bug72014.annon.php") | |
| --EXPECT-- | |
| Foo | |
| Foo | |
| Foo | |