summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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