From: Greg Beaver Date: Sun, 1 Mar 2009 07:07:05 +0000 (+0000) Subject: fix hash support on windows in ext/phar (Kalle) X-Git-Tag: RELEASE_1_3_5~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ff3b85d7460765a9a20a6ed1fffeb83c6ac5448;p=php fix hash support on windows in ext/phar (Kalle) --- diff --git a/ext/phar/config.w32 b/ext/phar/config.w32 index a81dfce0b1..33b90beeaf 100644 --- a/ext/phar/config.w32 +++ b/ext/phar/config.w32 @@ -35,5 +35,12 @@ if (PHP_PHAR != "no") { STDOUT.WriteLine(' Native OpenSSL support in Phar disabled'); } } + if (PHP_HASH != "no") { + if (PHP_HASH_SHARED == "no") { + AC_DEFINE("PHAR_HASH_OK", 1); + } else { + WARNING('Phar: sha256/sha512 signature support disabled if ext/hash is built shared'); + } + } ADD_EXTENSION_DEP('phar', 'spl', true); }