]> granicus.if.org Git - php/commitdiff
fixed is_identicat_function()
authorThies C. Arntzen <thies@php.net>
Tue, 19 Oct 1999 15:48:25 +0000 (15:48 +0000)
committerThies C. Arntzen <thies@php.net>
Tue, 19 Oct 1999 15:48:25 +0000 (15:48 +0000)
Zend/zend_operators.c

index 46055dda526b9e62ce527d35d26afc1caf981e0b..4368028bb458e364fc8b946672c2e168659a8224 100644 (file)
@@ -925,11 +925,11 @@ ZEND_API int is_identical_function(zval *result, zval *op1, zval *op2)
                case IS_BOOL:
                case IS_LONG:
                case IS_RESOURCE:
-                       result->type = (op1->value.lval == op2->value.lval);
+                       result->value.lval = (op1->value.lval == op2->value.lval);
                        return SUCCESS;
                        break;
                case IS_DOUBLE:
-                       result->type = (op1->value.dval == op2->value.dval);
+                       result->value.lval = (op1->value.dval == op2->value.dval);
                        return SUCCESS;
                        break;
                case IS_STRING: