com php-src: add test for bug #71625, 7 variant: ext/phar/tests/bug71625.phpt

From: Date: Thu, 18 Feb 2016 18:40:17 +0000
Subject: com php-src: add test for bug #71625, 7 variant: ext/phar/tests/bug71625.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91107@lists.php.net to get a copy of this message
Commit: b3df715f500ef7f4b075f3d0a351606d3c6d9e93 Author: Anatol Belski <ab@php.net> Thu, 18 Feb 2016 19:40:17 +0100 Parents: 4564b4c8f6a3dede64e910fbbb032be48bd460f2 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b3df715f500ef7f4b075f3d0a351606d3c6d9e93 Log: add test for bug #71625, 7 variant Bugs: https://bugs.php.net/71625 Changed paths: A ext/phar/tests/bug71625.phpt Diff: diff --git a/ext/phar/tests/bug71625.phpt b/ext/phar/tests/bug71625.phpt new file mode 100644 index 0000000..8e6c31f --- /dev/null +++ b/ext/phar/tests/bug71625.phpt @@ -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

« previous php.cvs (#91107) next »