From 5dc2cef370885c552c20f3ff44bccd402850de9e Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Fri, 31 Aug 2012 11:22:43 +0800 Subject: Fixed bug #62976 (Notice: could not be converted to int when comparing some builtin classes) --- Zend/zend_operators.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Zend/zend_operators.c') diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index e6fe67e764..aea63faedd 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -1489,6 +1489,9 @@ ZEND_API int compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) /* { ret = compare_function(result, op1, op_free TSRMLS_CC); zend_free_obj_get_result(op_free TSRMLS_CC); return ret; + } else if (Z_TYPE_P(op1) == IS_OBJECT) { + ZVAL_LONG(result, 1); + return SUCCESS; } } if (!converted) { -- cgit v1.2.1