]> granicus.if.org Git - php/commitdiff
MFH: - fixed Bug #26462 (phpize + ext/bcmath -> compile error)
authorfoobar <sniper@php.net>
Sat, 29 Nov 2003 13:35:33 +0000 (13:35 +0000)
committerfoobar <sniper@php.net>
Sat, 29 Nov 2003 13:35:33 +0000 (13:35 +0000)
NEWS
configure.in
ext/bcmath/config.m4
ext/bcmath/libbcmath/src/bcmath.h

diff --git a/NEWS b/NEWS
index e97f9a327ea205f5b890de42903e9874cb6d12b3..b758599ac703c88fef61d8ed54cd96a7c7d7fe09 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ PHP 4                                                                      NEWS
 ?? ??? 2003, Version 4.3.5
 - Fixed header handler in NSAPI SAPI module (header->replace was ignored,
   send_default_content_type now sends value from php.ini). (Uwe Schindler)
+- Fixed bug #26462 (phpize + ext/bcmath -> compile error). (Jani)
 - Fixed bug #26458 (var_dump(), var_export(), debug_zval_dump() not binary
   safe for array keys). (Ilia)
 - Fixed bug #26447 (--with-openssl=shared causes compile errors). (Jani)
index caaddc8baad7185d4fbfbe8ac2c8c39c41b0ef29..f0583304e0bfecf53b0239e785532ca74b0483a1 100644 (file)
@@ -1206,13 +1206,6 @@ if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES" || test "\$CONFIG_FILES" = " $ALL
   REDO_ALL=yes
 fi
 
-if test ! -f $srcdir/ext/bcmath/number.c; then
-  echo "creating number.c"
-  echo "/* Dummy File */" > $srcdir/ext/bcmath/number.c
-  echo "creating number.h"
-  echo "/* Dummy File */" > $srcdir/ext/bcmath/number.h
-fi
-
 ################################################################
 # Create configuration headers
 #
index a4fbb600303a4c77bdb64a0bcd6707b2715c68e3..0e008e736d175b72e0668fd81bee124d6ed77a65 100644 (file)
@@ -7,7 +7,7 @@ PHP_ARG_ENABLE(bcmath, whether to enable bc style precision math functions,
 
 if test "$PHP_BCMATH" != "no"; then
   AC_DEFINE(WITH_BCMATH, 1, [Whether you have bcmath])
-  PHP_NEW_EXTENSION(bcmath, bcmath.c number.c \
+  PHP_NEW_EXTENSION(bcmath, bcmath.c \
 libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/rt.c libbcmath/src/sub.c \
 libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
 libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \
index 6833ce4bcf38616c3a95ff691c1ddcf378ac72fa..7612eabf5d1a4b84b30fc22857da1e30664c4594 100644 (file)
@@ -52,9 +52,8 @@ typedef struct bc_struct
                           in the case of leading zeros generated. */
     } bc_struct;
 
-#include <php.h>
-#include <ext/bcmath/php_bcmath.h>
-
+#include "php.h"
+#include "../../php_bcmath.h"
 
 /* The base used in storing the numbers in n_value above.
    Currently this MUST be 10. */