Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add _ex API implementation for booleans.
  • Loading branch information
Sascha Schumann committed Sep 24, 1999
1 parent e303647 commit d8895c0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Zend/zend_operators.h
Expand Up @@ -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

0 comments on commit d8895c0

Please sign in to comment.