]> granicus.if.org Git - php/commitdiff
Fix skipif to resolve the common reason this test fails
authorChristopher Jones <sixd@php.net>
Fri, 17 Jun 2011 18:28:34 +0000 (18:28 +0000)
committerChristopher Jones <sixd@php.net>
Fri, 17 Jun 2011 18:28:34 +0000 (18:28 +0000)
ext/phar/tests/bug52013.phpt

index f4635a4660e3c398ef762b41f9b09b6462b9d22c..5ee37e7d4e96fc8029334629921c030464d1097c 100644 (file)
@@ -6,7 +6,10 @@ http://bugs.php.net/bug.php?id=52013
 --CREDITS--
 Frederic Hardy frederic.hardy@mageekbox.net
 --SKIPIF--
-<?php if (!extension_loaded("phar")) die("skip"); ?>
+<?php
+if (!extension_loaded("phar")) die("skip");
+if (!extension_loaded("zlib")) die("skip test needs zlib extension enabled to compress archives with gzip");
+?>
 --INI--
 phar.require_hash=0
 phar.readonly=0