]> granicus.if.org Git - php/commitdiff
Fix build
authorZeev Suraski <zeev@php.net>
Tue, 21 Nov 2000 22:41:49 +0000 (22:41 +0000)
committerZeev Suraski <zeev@php.net>
Tue, 21 Nov 2000 22:41:49 +0000 (22:41 +0000)
Zend/zend_operators.c
Zend/zend_operators.h

index aaaffd6d71daf8c3616ee5dd9145938ba1b8149b..09734abac5b8b55ae12e6b55a44f68f80bb46c34 100644 (file)
@@ -32,7 +32,7 @@
 #include "zend_list.h"
 #include "zend_fast_cache.h"
 
-#if WITH_BCMATH
+#if 0&&WITH_BCMATH
 #include "ext/bcmath/number.h"
 #endif
 
@@ -116,7 +116,7 @@ ZEND_API void convert_scalar_to_number(zval *op)
                        case IS_DOUBLE:
                        case IS_LONG:
                                break;
-#if WITH_BCMATH
+#if 0&&WITH_BCMATH
                        case FLAG_IS_BC:
                                op->type = IS_DOUBLE; /* may have lost significant digits */
                                break;
@@ -1598,7 +1598,7 @@ ZEND_API void zendi_smart_strcmp(zval *result, zval *s1, zval *s2)
        
        if ((ret1=is_numeric_string(s1->value.str.val, s1->value.str.len, &lval1, &dval1)) &&
                (ret2=is_numeric_string(s2->value.str.val, s2->value.str.len, &lval2, &dval2))) {
-#if WITH_BCMATH
+#if 0&&WITH_BCMATH
                if ((ret1==FLAG_IS_BC) || (ret2==FLAG_IS_BC)) {
                        bc_num first, second;
                        
index edac30f47e32cdabc34142ca124986bd79b249e7..75b1dd7fb3b6f2f6f5bac6f3b4fc975a8a89ab5e 100644 (file)
@@ -28,8 +28,9 @@
 #include <ieeefp.h>
 #endif
 
-#if WITH_BCMATH
-#include "ext/bcmath/number.h"
+
+#if 0&&WITH_BCMATH
+#include "ext/bcmath/libbcmath/src/bcmath.h"
 #endif
 
 #define MAX_LENGTH_OF_LONG 18
@@ -88,7 +89,7 @@ static inline int is_numeric_string(char *str, int length, long *lval, double *d
                if (dval) {
                        *dval = local_dval;
                }
-#if WITH_BCMATH
+#if 0&&WITH_BCMATH
                if (length>16) {
                        register char *ptr=str, *end=str+length;