]> granicus.if.org Git - php/commitdiff
- Fix error message in unicode mode
authorMarcus Boerger <helly@php.net>
Thu, 18 May 2006 21:14:40 +0000 (21:14 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 18 May 2006 21:14:40 +0000 (21:14 +0000)
Zend/zend_object_handlers.c

index e85f4180e9b6f0000dac4e179465e1d6dfba7131..f3323131fe30706309182b74246aa7a9626c31e7 100644 (file)
@@ -1068,7 +1068,7 @@ ZEND_API int zend_std_cast_object_tostring(zval *readobj, zval *writeobj, int ty
                        if (retval) {
                                zval_ptr_dtor(&retval);
                        }
-                                       zend_error(E_ERROR, "Method %s::__toString() must not throw an exception", ce->name);
+                                       zend_error(E_ERROR, "Method %v::__toString() must not throw an exception", ce->name);
                        return FAILURE;
                 }
                                if (Z_TYPE_P(retval) == (UG(unicode)?IS_UNICODE:IS_STRING)) {