From: Greg Beaver Date: Sun, 1 Mar 2009 06:50:26 +0000 (+0000) Subject: fix SKIPIF, EXPECT in 2 tests X-Git-Tag: RELEASE_1_3_5~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79f5f7538cfdbd315303257b032a7ec92f571229;p=php fix SKIPIF, EXPECT in 2 tests --- diff --git a/ext/phar/tests/front.phar.phpt b/ext/phar/tests/front.phar.phpt index 33fe2ab450..bab8ada0fd 100644 --- a/ext/phar/tests/front.phar.phpt +++ b/ext/phar/tests/front.phar.phpt @@ -12,8 +12,8 @@ PATH_INFO=/index.php Content-type: text/html; charset=UTF-8 --FILE_EXTERNAL-- files/blog.phar ---EXPECT-- -string(167) " +--EXPECTF-- +string(%d) " localhost diff --git a/ext/phar/tests/phar_get_supported_signatures_002.phpt b/ext/phar/tests/phar_get_supported_signatures_002.phpt index d7cd350115..20f950a146 100644 --- a/ext/phar/tests/phar_get_supported_signatures_002.phpt +++ b/ext/phar/tests/phar_get_supported_signatures_002.phpt @@ -5,7 +5,7 @@ Phar::getSupportedSignatures() if (!extension_loaded("phar")) die("skip"); if (!extension_loaded("hash")) die("skip extension hash required"); $arr = Phar::getSupportedSignatures(); -if (in_array("OpenSSL", $arr)) die ("skip openssl support enabled"); +if (!in_array('SHA-256', $arr)) die("skip hash extension loaded shared"); ?> --INI-- phar.require_hash=0