Download src/php/php-src/Zend/tests/anon/bug77652.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 264 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/anon/bug77652.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/anon/bug77652.phpt
-
curl -L -o bug77652.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/anon/bug77652.phpt
264 Bytes
| --TEST-- | |
| Bug #77652: Anonymous classes can lose their interface information | |
| --FILE-- | |
| interface I {} | |
| require __DIR__ . '/bug77652.inc'; | |
| $data = require __DIR__ . '/bug77652.inc'; | |
| print_r(class_implements($data['I']())); | |
| --EXPECT-- | |
| Array | |
| ( | |
| [I] => I | |
| ) | |