]> granicus.if.org Git - php/commitdiff
fix hash support on windows in ext/phar (Kalle)
authorGreg Beaver <cellog@php.net>
Sun, 1 Mar 2009 07:07:05 +0000 (07:07 +0000)
committerGreg Beaver <cellog@php.net>
Sun, 1 Mar 2009 07:07:05 +0000 (07:07 +0000)
ext/phar/config.w32

index a81dfce0b110c497295d836ece39a1c68653240b..33b90beeaf6b9dd6535aa7ef5b1eabf25d4a9ecd 100644 (file)
@@ -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);
 }