]> granicus.if.org Git - php/commitdiff
Fixed bug #40076 (zend_alloc.c: Value of enumeration constant must be in range of...
authorDmitry Stogov <dmitry@php.net>
Tue, 9 Jan 2007 15:29:14 +0000 (15:29 +0000)
committerDmitry Stogov <dmitry@php.net>
Tue, 9 Jan 2007 15:29:14 +0000 (15:29 +0000)
NEWS
Zend/zend_alloc.c

diff --git a/NEWS b/NEWS
index 453505dd9f09f7622ea653ee03bb00524c792f2a..ac9ec8eff5f57c8e416e1f5836d5981058e2afba 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,7 +2,9 @@ PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? Jan 2007, PHP 5.2.1RC3
 - Improved proc_open(). Now on Windows it can run external commands not through
-  CMD.EXE. (Dmitry)  
+  CMD.EXE. (Dmitry)
+- Fixed bug #40076 (zend_alloc.c: Value of enumeration constant must be in
+  range of signed integer). (Dmitry)
 - Fixed bug #40036 (empty() does not work correctly with ArrayObject when using
   ARRAY_AS_PROPS). (Ilia)
 - Fixed bug #40002 (Try/Catch performs poorly). (Dmitry)
index c547d47e4ba7ccd9b1f37b80d12137efa02acdab..c097f3b1cdf816464eba40781780d18ffddf378f 100644 (file)
@@ -292,13 +292,11 @@ static const zend_mm_mem_handlers mem_handlers[] = {
 /* Heap Manager */
 /****************/
 
-typedef enum _mem_magic {
-       MEM_BLOCK_VALID  = 0x7312F8DC,
-       MEM_BLOCK_FREED  = 0x99954317,
-       MEM_BLOCK_CACHED = 0xFB8277DC,
-       MEM_BLOCK_GUARD  = 0x2A8FCC84,
-       MEM_BLOCK_LEAK   = 0x6C5E8F2D
-} mem_magic;
+#define MEM_BLOCK_VALID  0x7312F8DC
+#define        MEM_BLOCK_FREED  0x99954317
+#define        MEM_BLOCK_CACHED 0xFB8277DC
+#define        MEM_BLOCK_GUARD  0x2A8FCC84
+#define        MEM_BLOCK_LEAK   0x6C5E8F2D
 
 /* mm block type */
 typedef struct _zend_mm_block_info {
@@ -334,7 +332,7 @@ typedef struct _zend_mm_debug_info {
 typedef struct _zend_mm_block {
        zend_mm_block_info info;
 #if ZEND_DEBUG
-       mem_magic magic;
+       unsigned int magic;
 # ifdef ZTS
        THREAD_T thread_id;
 # endif
@@ -347,7 +345,7 @@ typedef struct _zend_mm_block {
 typedef struct _zend_mm_free_block {
        zend_mm_block_info info;
 #if ZEND_DEBUG
-       mem_magic magic;
+       unsigned int magic;
 # ifdef ZTS
        THREAD_T thread_id;
 # endif