]> granicus.if.org Git - php/commitdiff
- Fixed bug #49289 (bcmath module does not compile with phpize configure).
authorJani Taskinen <jani@php.net>
Thu, 20 Aug 2009 11:19:20 +0000 (11:19 +0000)
committerJani Taskinen <jani@php.net>
Thu, 20 Aug 2009 11:19:20 +0000 (11:19 +0000)
NEWS
ext/bcmath/php_bcmath.h

diff --git a/NEWS b/NEWS
index 12c3343620586ef550f97112b9074490aff8cf8e..2f51a96b8570bb55d4ea5da43a7705cd10f8da68 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@ PHP                                                                        NEWS
 ?? ??? 2009, PHP 5.2.11
 - Added missing sanity checks around exif processing (Ilia)
 
+- Fixed bug #49289 (bcmath module doesn't compile with phpize configure).
+  (Jani)
 - Fixed bug #49269 (Ternary operator fails on Iterator object when used inside
   foreach declaration). (Etienne, Dmitry)
 - Fixed bug #49236 (Missing PHP_SUBST(PDO_MYSQL_SHARED_LIBADD)). (Jani)
index b8e35896525962e64260cf914b8a99dd09eec24b..b92f62d14b943602a0437c1e27d9aae1f44149f8 100644 (file)
@@ -21,8 +21,6 @@
 #ifndef PHP_BCMATH_H
 #define PHP_BCMATH_H
 
-#if HAVE_BCMATH
-
 #include "libbcmath/src/bcmath.h"
 
 extern zend_module_entry bcmath_module_entry;
@@ -50,18 +48,12 @@ ZEND_BEGIN_MODULE_GLOBALS(bcmath)
        long bc_precision;
 ZEND_END_MODULE_GLOBALS(bcmath)
        
-#if ZTS
-#define BCG(v) TSRMG(bcmath_globals_id, zend_bcmath_globals *, v)
+#ifdef ZTS
+# define BCG(v) TSRMG(bcmath_globals_id, zend_bcmath_globals *, v)
 #else
-#define BCG(v) (bcmath_globals.v)
+# define BCG(v) (bcmath_globals.v)
 #endif
 
 ZEND_EXTERN_MODULE_GLOBALS(bcmath)
 
-#else
-
-#define phpext_bcmath_ptr NULL
-
-#endif
-
 #endif /* PHP_BCMATH_H */