summaryrefslogtreecommitdiff
path: root/Zend/zend_operators.h
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-09-24 19:22:25 +0000
committerSascha Schumann <sas@php.net>1999-09-24 19:22:25 +0000
commitd8895c02f79fd0b1f58352b4d8930442a111008e (patch)
tree0d8f7ebede8ae1165de9c6813d63ae397124d82f /Zend/zend_operators.h
parente303647058a32ee0dcf5e627c593c9d4838d4cdf (diff)
downloadphp-git-d8895c02f79fd0b1f58352b4d8930442a111008e.tar.gz
Add _ex API implementation for booleans.
Diffstat (limited to 'Zend/zend_operators.h')
-rw-r--r--Zend/zend_operators.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h
index 5764fc30e7..ad3b69cf93 100644
--- a/Zend/zend_operators.h
+++ b/Zend/zend_operators.h
@@ -110,4 +110,12 @@ ZEND_API void zendi_smart_strcmp(zval *result, zval *s1, zval *s2);
convert_to_object(*ppzv); \
}
+#define convert_to_boolean_ex(ppzv) \
+ if ((*ppzv)->type!=IS_BOOL) { \
+ if (!(*ppzv)->EA.is_ref) { \
+ SEPARATE_ZVAL(ppzv); \
+ } \
+ convert_to_boolean(*ppzv); \
+ }
+
#endif