cvs: ZendEngine2 / zend_operators.c
| From: | Andi Gutmans | Date: | Sun, 02 May 2004 15:40:47 +0000 |
| Subject: | cvs: ZendEngine2 / zend_operators.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2627@lists.php.net to get a copy of this message | ||
andi Sun May 2 11:40:47 2004 EDT
Modified files:
/ZendEngine2 zend_operators.c
Log:
- Fix comparison of two objects in non-compatibility mode.
http://cvs.php.net/diff.php/ZendEngine2/zend_operators.c?r1=1.191&r2=1.192&ty=u
Index: ZendEngine2/zend_operators.c
diff -u ZendEngine2/zend_operators.c:1.191 ZendEngine2/zend_operators.c:1.192
--- ZendEngine2/zend_operators.c:1.191 Sat Apr 3 12:01:13 2004
+++ ZendEngine2/zend_operators.c Sun May 2 11:40:46 2004
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_operators.c,v 1.191 2004/04/03 17:01:13 andi Exp $ */
+/* $Id: zend_operators.c,v 1.192 2004/05/02 15:40:46 andi Exp $ */
#include <ctype.h>
@@ -328,12 +328,9 @@
if (ht) {
retval = (zend_hash_num_elements(ht)?1:0);
}
- } else {
- zend_error(E_NOTICE, "Object of class %s could not be converted to integer",
Z_OBJCE_P(op)->name);
+ zval_dtor(op);
+ ZVAL_LONG(op, retval);
}
-
- zval_dtor(op);
- ZVAL_LONG(op, retval);
break;
}
default: