From 1ff3b85d7460765a9a20a6ed1fffeb83c6ac5448 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sun, 1 Mar 2009 07:07:05 +0000 Subject: [PATCH] fix hash support on windows in ext/phar (Kalle) --- ext/phar/config.w32 | 7 +++++++ 1 file changed, 7 insertions(+) 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); } -- 2.40.0