cvs: ZendEngine2(PHP_5_0) / zend_operators.c

From: Date: Wed, 20 Oct 2004 19:33:35 +0000
Subject: cvs: ZendEngine2(PHP_5_0) / zend_operators.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3101@lists.php.net to get a copy of this message
andi Wed Oct 20 15:33:35 2004 EDT Modified files: (Branch: PHP_5_0) /ZendEngine2 zend_operators.c Log: - MFH http://cvs.php.net/diff.php/ZendEngine2/zend_operators.c?r1=1.193.2.3&r2=1.193.2.4&ty=u Index: ZendEngine2/zend_operators.c diff -u ZendEngine2/zend_operators.c:1.193.2.3 ZendEngine2/zend_operators.c:1.193.2.4 --- ZendEngine2/zend_operators.c:1.193.2.3 Thu Sep 30 14:36:21 2004 +++ ZendEngine2/zend_operators.c Wed Oct 20 15:33:35 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_operators.c,v 1.193.2.3 2004/09/30 18:36:21 andi Exp $ */ +/* $Id: zend_operators.c,v 1.193.2.4 2004/10/20 19:33:35 andi Exp $ */ #include <ctype.h> @@ -1959,13 +1959,13 @@ { result->type = IS_LONG; - if (Z_OBJ_HT_P(o1)->compare_objects == NULL) { - if (Z_OBJ_HANDLE_P(o1) == Z_OBJ_HANDLE_P(o2)) { - result->value.lval = 0; - } else { - result->value.lval = 1; - } + if (Z_OBJ_HANDLE_P(o1) == Z_OBJ_HANDLE_P(o2)) { + result->value.lval = 0; return; + } + + if (Z_OBJ_HT_P(o1)->compare_objects == NULL) { + result->value.lval = 1; } else { result->value.lval = Z_OBJ_HT_P(o1)->compare_objects(o1, o2 TSRMLS_CC); }

« previous php.zend-engine.cvs (#3101) next »