Download src/php/php-src/ext/phar/tests/002.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/phar/tests/002.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/phar/tests/002.phpt
-
curl -L -o 002.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/phar/tests/002.phpt
449 Bytes
| --TEST-- | |
| Phar::mapPhar truncated manifest/improper params | |
| --EXTENSIONS-- | |
| phar | |
| --FILE-- | |
| try { | |
| Phar::mapPhar(5, 'hio', 'hi'); | |
| } catch (TypeError $e) { | |
| echo $e->getMessage(), "\n"; | |
| } | |
| try { | |
| Phar::mapPhar(); | |
| } catch (Exception $e) { | |
| echo $e->getMessage(), "\n"; | |
| } | |
| __HALT_COMPILER(); | |
| --EXPECTF-- | |
| Phar::mapPhar() expects at most 2 arguments, 3 given | |
| internal corruption of phar "%s002.php" (truncated manifest at manifest length) | |