logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

cvs: ZendEngine2(PHP_5_2) / zend_alloc.c php-src NEWS: msg#00014

Subject: cvs: ZendEngine2(PHP_5_2) / zend_alloc.c php-src NEWS
dmitry          Tue Jan  9 15:29:14 2007 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src    NEWS 
    /ZendEngine2        zend_alloc.c 
  Log:
  Fixed bug #40076 (zend_alloc.c: Value of enumeration constant must be in 
range of signed integer)
  
  
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.480&r2=1.2027.2.547.2.481&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.480 php-src/NEWS:1.2027.2.547.2.481
--- php-src/NEWS:1.2027.2.547.2.480     Tue Jan  9 15:06:07 2007
+++ php-src/NEWS        Tue Jan  9 15:29:14 2007
@@ -2,7 +2,9 @@
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? 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)
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_alloc.c?r1=1.144.2.3.2.29&r2=1.144.2.3.2.30&diff_format=u
Index: ZendEngine2/zend_alloc.c
diff -u ZendEngine2/zend_alloc.c:1.144.2.3.2.29 
ZendEngine2/zend_alloc.c:1.144.2.3.2.30
--- ZendEngine2/zend_alloc.c:1.144.2.3.2.29     Mon Jan  1 09:35:45 2007
+++ ZendEngine2/zend_alloc.c    Tue Jan  9 15:29:14 2007
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_alloc.c,v 1.144.2.3.2.29 2007/01/01 09:35:45 sebastian Exp $ */
+/* $Id: zend_alloc.c,v 1.144.2.3.2.30 2007/01/09 15:29:14 dmitry Exp $ */
 
 #include "zend.h"
 #include "zend_alloc.h"
@@ -292,13 +292,11 @@
 /* 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_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_free_block {
        zend_mm_block_info info;
 #if ZEND_DEBUG
-       mem_magic magic;
+       unsigned int magic;
 # ifdef ZTS
        THREAD_T thread_id;
 # endif

-- 
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>