From: Derick Rethans Date: Thu, 4 Mar 2004 11:02:05 +0000 (+0000) Subject: - Fixed a 64bit issue (for zend_builtin_functions.c, module_number is an int). X-Git-Tag: RELEASE_0_2_0~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39ac9579f7ff602014237d66681911702436008d;p=php - Fixed a 64bit issue (for zend_builtin_functions.c, module_number is an int). - Change the MAX_LENGTH_OF_LONG constant to 20, as LONG_MAX is 20 characters. (Patches by Ard Biesheuven) --- diff --git a/Zend/zend_constants.h b/Zend/zend_constants.h index aedcc16b6d..b587f471ff 100644 --- a/Zend/zend_constants.h +++ b/Zend/zend_constants.h @@ -27,7 +27,7 @@ #define CONST_CS (1<<0) /* Case Sensitive */ #define CONST_PERSISTENT (1<<1) /* Persistent */ -#define PHP_USER_CONSTANT LONG_MAX /* a constant defined in user space */ +#define PHP_USER_CONSTANT INT_MAX /* a constant defined in user space */ typedef struct _zend_constant { zval value; diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h index d57214f018..6ec32b5dea 100644 --- a/Zend/zend_operators.h +++ b/Zend/zend_operators.h @@ -34,7 +34,7 @@ #include "ext/bcmath/libbcmath/src/bcmath.h" #endif -#define MAX_LENGTH_OF_LONG 18 +#define MAX_LENGTH_OF_LONG 20 #define MAX_LENGTH_OF_DOUBLE 32 BEGIN_EXTERN_C()