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