From d8895c02f79fd0b1f58352b4d8930442a111008e Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Fri, 24 Sep 1999 19:22:25 +0000 Subject: [PATCH] Add _ex API implementation for booleans. --- Zend/zend_operators.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.40.0