From: Marcus Boerger Date: Sat, 27 Mar 2004 14:06:28 +0000 (+0000) Subject: Even though it is uncommented it should be right X-Git-Tag: php-5.0.0RC2RC1~201 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63338975d41d3a2d66f4adc4e02403908f72afc4;p=php Even though it is uncommented it should be right --- diff --git a/Zend/zend.c b/Zend/zend.c index 20f109c1a5..7497c153f0 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -218,7 +218,7 @@ ZEND_API void zend_make_printable_zval(zval *expr, zval *expr_copy, int *use_cop TSRMLS_FETCH(); #if 0 /* Standard PHP objects */ - if (expr->value.obj.handlers == &std_object_handlers) { + if (Z_OBJ_HT_P(expr) == &std_object_handlers || !Z_OBJ_HT_P(expr)->cast_object) { if (zend_std_cast_object_tostring(expr, expr_copy, IS_STRING, 0 TSRMLS_CC) == SUCCESS) { break; }