summaryrefslogtreecommitdiff
path: root/ext/phar/tests/zip/all.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/tests/zip/all.phpt')
-rw-r--r--ext/phar/tests/zip/all.phpt17
1 files changed, 10 insertions, 7 deletions
diff --git a/ext/phar/tests/zip/all.phpt b/ext/phar/tests/zip/all.phpt
index 1351e3ea76..7fcb5f3684 100644
--- a/ext/phar/tests/zip/all.phpt
+++ b/ext/phar/tests/zip/all.phpt
@@ -1,10 +1,13 @@
--TEST--
Phar: test that creation of zip-based phar generates valid zip with all bells/whistles
--SKIPIF--
-<?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
-<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
-<?php if (!extension_loaded("bz2")) die("skip bz2 not available"); ?>
+<?php
+if (!extension_loaded("phar")) die("skip");
+if (version_compare(PHP_VERSION, "6.0", ">")) die("skip pre-unicode version of PHP required");
+if (!extension_loaded("spl")) die("skip SPL not available");
+if (!extension_loaded("zlib")) die("skip zlib not available");
+if (!extension_loaded("bz2")) die("skip bz2 not available");
+?>
--INI--
phar.readonly=0
--FILE--
@@ -53,10 +56,10 @@ string(3) "hi3"
bool(false)
bool(true)
bool(true)
-unicode(6) "100444"
+string(6) "100444"
string(32) "<?php ok __HALT_COMPILER(); ?>
"
string(4) "hime"
-unicode(8) "hi there"
-unicode(6) "a meta"
+string(8) "hi there"
+string(6) "a meta"
===DONE===