]> granicus.if.org Git - php/commitdiff
- Fix compare_function() for IS_UNSET
authorAndi Gutmans <andi@php.net>
Mon, 3 Jan 2000 05:28:34 +0000 (05:28 +0000)
committerAndi Gutmans <andi@php.net>
Mon, 3 Jan 2000 05:28:34 +0000 (05:28 +0000)
Zend/zend_operators.c

index e85713717f190d63fa3e9ba8a292022edd535c4b..ff57c87a64bdeb5e31640b2c9deb13bf769136d2 100644 (file)
@@ -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;