diff options
author | Andi Gutmans <andi@php.net> | 2000-01-03 05:28:34 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-01-03 05:28:34 +0000 |
commit | da8ad4f20fe75fef797469eb1e8dffb9931fd6eb (patch) | |
tree | cc63da0b02b3f66856411bea07de84818463f34e /Zend/zend_operators.c | |
parent | a51deb53715aa5c4d28707174d2778c9094b025a (diff) | |
download | php-git-da8ad4f20fe75fef797469eb1e8dffb9931fd6eb.tar.gz |
- Fix compare_function() for IS_UNSET
Diffstat (limited to 'Zend/zend_operators.c')
-rw-r--r-- | Zend/zend_operators.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index e85713717f..ff57c87a64 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -912,7 +912,8 @@ ZEND_API int compare_function(zval *result, zval *op1, zval *op2) return SUCCESS; } - if (op1->type == IS_BOOL || op2->type == IS_BOOL) { + if (op1->type == IS_BOOL || op2->type == IS_BOOL + || op1->type == IS_UNSET || op2->type == IS_UNSET) { zendi_convert_to_boolean(op1, op1_copy, result); zendi_convert_to_boolean(op2, op2_copy, result); result->type = IS_LONG; |