Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.h

From: Date: Fri, 03 Oct 2003 23:57:50 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.h
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1875@lists.php.net to get a copy of this message
I think you should fix the places which call ZVAL_BOOL() incorrectly instead of slowing down the general case. I know it's quite negligible but it still makes more sense IMO. Andi At 04:57 PM 10/3/2003 +0000, Moriyoshi Koizumi wrote:
moriyoshi               Fri Oct  3 12:57:41 2003 EDT
Modified files:
    /ZendEngine2        zend_API.h
Log: Ensure lval to have a *boolean* value. Index: ZendEngine2/zend_API.h diff -u ZendEngine2/zend_API.h:1.161 ZendEngine2/zend_API.h:1.162
--- ZendEngine2/zend_API.h:1.161        Wed Sep  3 14:01:22 2003
+++ ZendEngine2/zend_API.h      Fri Oct  3 12:57:41 2003
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
*/ -/* $Id: zend_API.h,v 1.161 2003/09/03 18:01:22 helly Exp $ */ +/* $Id: zend_API.h,v 1.162 2003/10/03 16:57:41 moriyoshi Exp $ */ #ifndef ZEND_API_H #define ZEND_API_H @@ -332,7 +332,7 @@
 #define ZVAL_BOOL(z, b) {                              \
                (z)->type = IS_BOOL;            \
-               (z)->value.lval = b;            \
+               (z)->value.lval = (b != 0);     \
        }
 #define ZVAL_NULL(z) {                                 \
-- Zend Engine CVS Mailing List (http://cvs.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.zend-engine.cvs (#1875) next »