cellog Sun Mar 1 07:07:14 2009 UTC
Modified files:
/php-src/ext/phar config.w32
Log:
MFB: fix hash support on windows in ext/phar (Kalle)
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/config.w32?r1=1.30&r2=1.31&diff_format=u
Index: php-src/ext/phar/config.w32
diff -u php-src/ext/phar/config.w32:1.30 php-src/ext/phar/config.w32:1.31
--- php-src/ext/phar/config.w32:1.30 Sun Aug 31 20:54:27 2008
+++ php-src/ext/phar/config.w32 Sun Mar 1 07:07:14 2009
@@ -1,17 +1,16 @@
-// $Id: config.w32,v 1.30 2008/08/31 20:54:27 sfox Exp $
+// $Id: config.w32,v 1.31 2009/03/01 07:07:14 cellog Exp $
// vim:ft=javascript
-ARG_ENABLE("phar", "enable phar support", "no");
+ARG_ENABLE("phar", "disable phar support", "yes");
ARG_ENABLE("phar-native-ssl", "enable phar with native OpenSSL support", "no");
if (PHP_PHAR_NATIVE_SSL != "no") {
PHP_PHAR = PHP_PHAR_NATIVE_SSL;
- PHP_PHAR_SHARED = PHP_PHAR_NATIVE_SSL_SHARED;
}
if (PHP_PHAR != "no") {
EXTENSION("phar", "dirstream.c func_interceptors.c phar.c phar_object.c
phar_path_check.c stream.c tar.c util.c zip.c");
- if (PHP_PHAR_SHARED) {
+ if (PHP_PHAR_SHARED || (PHP_PHAR_NATIVE_SSL_SHARED &&
PHP_SNAPSHOT_BUILD == "no")) {
ADD_FLAG("CFLAGS_PHAR", "/D COMPILE_DL_PHAR ");
}
if (PHP_PHAR_NATIVE_SSL != "no") {
@@ -36,5 +35,12 @@
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);
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php