From: Andi Gutmans Date: Wed, 17 Mar 2004 15:49:34 +0000 (+0000) Subject: - Stop make_printable_zval() from calling __toString() X-Git-Tag: php-5.0.0RC1RC2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09341786dcec7e5202ae38214f71f9b518965d00;p=php - Stop make_printable_zval() from calling __toString() --- diff --git a/Zend/zend.c b/Zend/zend.c index 81225381b4..b21a2cff3a 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -216,6 +216,7 @@ ZEND_API void zend_make_printable_zval(zval *expr, zval *expr_copy, int *use_cop case IS_OBJECT: { TSRMLS_FETCH(); +#if 0 /* Standard PHP objects */ if (expr->value.obj.handlers == &std_object_handlers) { if (zend_std_cast_object_tostring(expr, expr_copy, IS_STRING, 0 TSRMLS_CC) == SUCCESS) { @@ -223,6 +224,7 @@ ZEND_API void zend_make_printable_zval(zval *expr, zval *expr_copy, int *use_cop } zend_error(E_NOTICE, "Object of class %s could not be converted to string", Z_OBJCE_P(expr)->name); } +#endif if (expr->value.obj.handlers->cast_object && expr->value.obj.handlers->cast_object(expr, expr_copy, IS_STRING, 0 TSRMLS_CC) == SUCCESS) { break;