diff options
author | Derick Rethans <derick@php.net> | 2004-03-04 11:02:05 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2004-03-04 11:02:05 +0000 |
commit | 39ac9579f7ff602014237d66681911702436008d (patch) | |
tree | ef6655f83606c10a7521f478c67c60dad1eb063b | |
parent | f88b28688802690116a6d426abf4b9c344fda6b4 (diff) | |
download | php-git-39ac9579f7ff602014237d66681911702436008d.tar.gz |
- 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)
-rw-r--r-- | Zend/zend_constants.h | 2 | ||||
-rw-r--r-- | Zend/zend_operators.h | 2 |
2 files changed, 2 insertions, 2 deletions
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() |