diff options
| author | Sascha Schumann <sas@php.net> | 1999-09-24 19:22:25 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 1999-09-24 19:22:25 +0000 |
| commit | d8895c02f79fd0b1f58352b4d8930442a111008e (patch) | |
| tree | 0d8f7ebede8ae1165de9c6813d63ae397124d82f /Zend | |
| parent | e303647058a32ee0dcf5e627c593c9d4838d4cdf (diff) | |
| download | php-git-d8895c02f79fd0b1f58352b4d8930442a111008e.tar.gz | |
Add _ex API implementation for booleans.
Diffstat (limited to 'Zend')
| -rw-r--r-- | Zend/zend_operators.h | 8 |
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 |
