summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>2001-07-11 12:40:29 +0000
committerThies C. Arntzen <thies@php.net>2001-07-11 12:40:29 +0000
commit07ea0684547d1bb701c3a7db95a7d9802500025d (patch)
tree89a1d4a47331c80ee3d692ab90a239799b548b64 /Zend
parent6cf5e7f9f763af4aa20f0705a84e78137aa0d47c (diff)
downloadphp-git-07ea0684547d1bb701c3a7db95a7d9802500025d.tar.gz
fixed ZVAL_FALSE and ZVAL_TRUE
Diffstat (limited to 'Zend')
-rw-r--r--Zend/zend_API.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index 429e1e14f1..6a44d0817b 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -293,8 +293,8 @@ if ((z)->value.str.val[ (z)->value.str.len ] != '\0') zend_error(E_WARNING, "Str
(z)->type = IS_STRING; \
}
-#define ZVAL_FALSE { (z)->value.lval = 0; (z)->type = IS_BOOL; }
-#define ZVAL_TRUE { (z)->value.lval = 1; (z)->type = IS_BOOL; }
+#define ZVAL_FALSE(z) ZVAL_BOOL(z,0)
+#define ZVAL_TRUE(z) ZVAL_BOOL(z,1)
#define RETVAL_RESOURCE(l) ZVAL_RESOURCE(return_value,l)
#define RETVAL_BOOL(b) ZVAL_BOOL(return_value,b)