- Change the MAX_LENGTH_OF_LONG constant to 20, as LONG_MAX is 20 characters.
(Patches by Ard Biesheuven)
#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;
#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()