]> granicus.if.org Git - php/commitdiff
Even though it is uncommented it should be right
authorMarcus Boerger <helly@php.net>
Sat, 27 Mar 2004 14:06:28 +0000 (14:06 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 27 Mar 2004 14:06:28 +0000 (14:06 +0000)
Zend/zend.c

index 20f109c1a54906a34216906561d3036664fe7840..7497c153f06885290ba4bb98296814903ec63199 100644 (file)
@@ -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;
                                        }