diff options
author | Andi Gutmans <andi@php.net> | 2001-07-29 08:22:57 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2001-07-29 08:22:57 +0000 |
commit | c259cb7c1a5b79e1770b9bf21d72f4f8e7d482ab (patch) | |
tree | a1eb81e1f7d183e28deee093bc26b7c95ad7992d | |
parent | 442890f3e18f6daa283e07d5c1e37af689bda690 (diff) | |
download | php-git-c259cb7c1a5b79e1770b9bf21d72f4f8e7d482ab.tar.gz |
- Object macros...
-rw-r--r-- | Zend/zend.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/Zend/zend.c b/Zend/zend.c index 09b14723e1..1f9d6ed522 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -208,15 +208,19 @@ ZEND_API void zend_print_zval_r_ex(zend_write_func_t write_func, zval *expr, int expr->value.ht->nApplyCount--; break; case IS_OBJECT: - if (++expr->value.obj.properties->nApplyCount>1) { - ZEND_PUTS(" *RECURSION*"); - expr->value.obj.properties->nApplyCount=0; - return; + { + zend_object *object = Z_OBJ_P(expr); + + if (++object->properties->nApplyCount>1) { + ZEND_PUTS(" *RECURSION*"); + object->properties->nApplyCount=0; + return; + } + zend_printf("%s Object\n", object->ce->name); + print_hash(object->properties, indent); + object->properties->nApplyCount--; + break; } - zend_printf("%s Object\n", expr->value.obj.ce->name); - print_hash(expr->value.obj.properties, indent); - expr->value.obj.properties->nApplyCount--; - break; default: zend_print_variable(expr); break; |