Browse Source

- 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)
PEAR_1_4DEV
Derick Rethans 23 years ago
parent
commit
39ac9579f7
  1. 2
      Zend/zend_constants.h
  2. 2
      Zend/zend_operators.h

2
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;

2
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()

Loading…
Cancel
Save