bug71488.phpt 502 B

123456789101112131415161718192021
  1. --TEST--
  2. Phar: bug #71488: Stack overflow when decompressing tar archives
  3. --EXTENSIONS--
  4. phar
  5. --FILE--
  6. <?php
  7. $p = new PharData(__DIR__."/bug71488.tar");
  8. $newp = $p->decompress("test");
  9. ?>
  10. DONE
  11. --CLEAN--
  12. <?php
  13. @unlink(__DIR__."/bug71488.test");
  14. ?>
  15. --EXPECTF--
  16. Fatal error: Uncaught BadMethodCallException: tar-based phar "%s/bug71488.test" cannot be created, link "%s" is too long for format in %sbug71488.php:%d
  17. Stack trace:
  18. #0 %s(%d): PharData->decompress('test')
  19. #1 {main}
  20. thrown in %s on line %d