bug72928.phpt 376 B

123456789101112131415161718
  1. --TEST--
  2. Phar: #72928 (Out of bound when verify signature of zip phar in phar_parse_zipfile)
  3. --EXTENSIONS--
  4. phar
  5. --FILE--
  6. <?php
  7. chdir(__DIR__);
  8. try {
  9. $phar = new PharData('bug72928.zip');
  10. var_dump($phar);
  11. } catch(UnexpectedValueException $e) {
  12. print $e->getMessage()."\n";
  13. }
  14. ?>
  15. DONE
  16. --EXPECTF--
  17. phar error: signature cannot be read in zip-based phar "%sbug72928.zip"
  18. DONE