From 44358edd8df3607da0b80de440cf33137f3b68c1 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Mon, 21 Apr 2008 16:39:11 +0000 Subject: [PATCH] new test for non-executable zip named as phar --- ext/phar/tests/zip/notphar.phpt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 ext/phar/tests/zip/notphar.phpt 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 -- 2.50.1