1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00

- Fix comparison of two objects in non-compatibility mode.

This commit is contained in:
Andi Gutmans
2004-05-02 15:40:46 +00:00
parent 6a4e1fff78
commit 3317070941
+2 -5
View File
@@ -328,12 +328,9 @@ ZEND_API void convert_to_long_base(zval *op, int base)
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: