diff options
author | Andi Gutmans <andi@php.net> | 2004-03-14 15:56:03 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2004-03-14 15:56:03 +0000 |
commit | f11c819ddbe58baae62ef4715032eddd1d0f7ec1 (patch) | |
tree | e5b90dcb25ebac93fe7e2d3aff7c395b6112b0c7 | |
parent | 7901a2218cc6bdc6c76bdf8be7ae1d407fe19bb7 (diff) | |
download | php-git-f11c819ddbe58baae62ef4715032eddd1d0f7ec1.tar.gz |
- Improve compatibility mode and compare objects according to property
- comparison (sucky but this is how PHP 4 behaved).
-rw-r--r-- | Zend/zend_operators.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index c453e05db0..b46c101c42 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -1918,6 +1918,11 @@ ZEND_API void zend_compare_objects(zval *result, zval *o1, zval *o2 TSRMLS_DC) return; } + if (EG(ze1_compatibility_mode) && Z_OBJPROP_P(o1) && Z_OBJPROP_P(o2)) { + zend_compare_symbol_tables(result, Z_OBJPROP_P(o1), Z_OBJPROP_P(o2) TSRMLS_CC); + return; + } + if (Z_OBJ_HT_P(o1)->compare_objects == NULL) { if (Z_OBJ_HANDLE_P(o1) == Z_OBJ_HANDLE_P(o2)) { result->value.lval = 0; |