]> granicus.if.org Git - php/commitdiff
- Fixed a 64bit issue (for zend_builtin_functions.c, module_number is an int).
authorDerick Rethans <derick@php.net>
Thu, 4 Mar 2004 11:02:05 +0000 (11:02 +0000)
committerDerick Rethans <derick@php.net>
Thu, 4 Mar 2004 11:02:05 +0000 (11:02 +0000)
- Change the MAX_LENGTH_OF_LONG constant to 20, as LONG_MAX is 20 characters.
  (Patches by Ard Biesheuven)

Zend/zend_constants.h
Zend/zend_operators.h

index aedcc16b6d2b746de7908540385a58c002964d3f..b587f471fff9f4242ac0cf29f3f282c9c8d11ae0 100644 (file)
@@ -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;
index d57214f0189d68f96a1bf35c1abc8bc3b119c64c..6ec32b5deade0611280aeb6c49bdf4ae9ee17a46 100644 (file)
@@ -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()