]> granicus.if.org Git - php/commitdiff
Disable Phar on big endian systems for beta 1.
authorScott MacVicar <scottmac@php.net>
Wed, 28 Jan 2009 15:53:29 +0000 (15:53 +0000)
committerScott MacVicar <scottmac@php.net>
Wed, 28 Jan 2009 15:53:29 +0000 (15:53 +0000)
NEWS
ext/phar/config.m4

diff --git a/NEWS b/NEWS
index c92d330713e51d7cf762d54234a7f53c1b7e7295..b3d75edeb80f6a01d52ce711f319e0ac95c616e8 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,8 @@ PHP                                                                        NEWS
 - Deprecated session_register(), session_unregister() and
   session_is_registered(). (Hannes)
 
+- Disabled Phar for big endian systems due to various crash bugs. (Scott)
+
 - Improved DNS API
  . Added Windows support for dns_check_record(), dns_get_mx(), checkdnsrr() and
    getmxrr(). (Pierre)
index 2ac7f3dd81324bdac1fd5710fee22861419797e6..902a055827ae467b366673fdaa62daeb74d77d66 100644 (file)
@@ -5,6 +5,10 @@ PHP_ARG_ENABLE(phar, for phar archive support,
 [  --disable-phar          Disable phar support], yes)
 
 if test "$PHP_PHAR" != "no"; then
+  PHP_C_BIGENDIAN
+  if test $ac_cv_c_bigendian_php = yes; then
+    AC_MSG_WARN([Disabling Phar due to crash bugs on big endian systems])
+  else
   PHP_NEW_EXTENSION(phar, util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c, $ext_shared)
   AC_MSG_CHECKING([for phar openssl support])
   if test "$PHP_HASH_SHARED" != "yes"; then
@@ -27,4 +31,5 @@ if test "$PHP_PHAR" != "no"; then
   PHP_ADD_EXTENSION_DEP(phar, hash, true)
   PHP_ADD_EXTENSION_DEP(phar, spl, true)
   PHP_ADD_MAKEFILE_FRAGMENT
+  fi
 fi