]> granicus.if.org Git - php/commitdiff
revert back the optimization for now.
authorSterling Hughes <sterling@php.net>
Mon, 30 Jun 2003 01:41:15 +0000 (01:41 +0000)
committerSterling Hughes <sterling@php.net>
Mon, 30 Jun 2003 01:41:15 +0000 (01:41 +0000)
Zend/zend_operators.c

index b47ce9fe52f91293e1c63a31049021b369f958d6..ed63fa47c163eed3acdb2c5223d3d32a61dcb43f 100644 (file)
@@ -1200,11 +1200,7 @@ ZEND_API int compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
        }
                
        if (op1->type == IS_STRING && op2->type == IS_STRING) {
-               if (op1->value.str.len == op2->value.str.len) {
-                       zendi_smart_strcmp(result, op1, op2);
-               } else {
-                       ZVAL_LONG(result, 1);
-               }
+               zendi_smart_strcmp(result, op1, op2);
                return SUCCESS;
        }