bug71625.phpt 651 B

12345678910111213141516171819202122232425262728
  1. --TEST--
  2. Phar - Bug #71625 - Crash in php7.dll
  3. --INI--
  4. phar.readonly=0
  5. --EXTENSIONS--
  6. phar
  7. zlib
  8. --SKIPIF--
  9. <?php
  10. if(substr(PHP_OS, 0, 3) != 'WIN' ) {
  11. die('skip windows only test');
  12. }
  13. if (file_exists('A:')) die('skip drive A: exists');
  14. ?>
  15. --FILE--
  16. <?php
  17. $phar = new Phar("A:A:.phar");
  18. $phar["hello_habr.txt"] = '<? Hello Habr!?>';
  19. ?>
  20. DONE
  21. --EXPECTF--
  22. Fatal error: Uncaught UnexpectedValueException: Cannot create phar 'A:A:.phar', file extension (or combination) not recognised or the directory does not exist in %sbug71625.php:%d
  23. Stack trace:
  24. #0 %sbug71625.php(%d): Phar->__construct('A:A:.phar')
  25. #1 {main}
  26. thrown in %sbug71625.php on line %d