Fixed bug #62976 (Notice: could not be converted to int when comparing some builtin classes)

This commit is contained in:
Xinchen Hui 2012-08-31 11:22:43 +08:00
parent 8afb848e18
commit 5dc2cef370
3 changed files with 7 additions and 6 deletions

View file

@ -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) {