From: Greg Beaver Date: Mon, 21 Apr 2008 16:39:11 +0000 (+0000) Subject: new test for non-executable zip named as phar X-Git-Tag: RELEASE_2_0_0b1~287 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44358edd8df3607da0b80de440cf33137f3b68c1;p=php new test for non-executable zip named as phar --- diff --git a/ext/phar/tests/zip/notphar.phpt b/ext/phar/tests/zip/notphar.phpt new file mode 100644 index 0000000000..249de67159 --- /dev/null +++ b/ext/phar/tests/zip/notphar.phpt @@ -0,0 +1,21 @@ +--TEST-- +phar: a non-executable zip with no stub named .phar.zip +--SKIPIF-- + +--FILE-- + +===DONE=== +--CLEAN-- + +--EXPECTF-- +Warning: include(phar://%snotphar.phar.zip/.phar/stub.php): failed to open stream: '%snotphar.phar.zip' is not a phar archive. Use PharData::__construct() for a standard zip or tar archive in %snotphar.php on line %d +PK%a \ No newline at end of file