mirror of
https://github.com/php/php-src.git
synced 2026-04-05 07:02:33 +02:00
Merge branch 'PHP-7.0'
* PHP-7.0: add test for bug #71625, 7 variant add test for bug #71625
This commit is contained in:
25
ext/phar/tests/bug71625.phpt
Normal file
25
ext/phar/tests/bug71625.phpt
Normal file
@@ -0,0 +1,25 @@
|
||||
--TEST--
|
||||
Phar - Bug #71625 - Crash in php7.dll
|
||||
--INI--
|
||||
phar.readonly=0
|
||||
--SKIPIF--
|
||||
<?php
|
||||
|
||||
if (!extension_loaded("phar") || !extension_loaded("zlib")) die("skip");
|
||||
if(substr(PHP_OS, 0, 3) != 'WIN' ) {
|
||||
die('skip windows only test');
|
||||
}
|
||||
|
||||
?>
|
||||
--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
|
||||
Reference in New Issue
Block a user