From: Marcus Boerger Date: Thu, 21 Aug 2003 15:24:33 +0000 (+0000) Subject: If ce not given than any object would do X-Git-Tag: RELEASE_0_7~526 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fda38bf2fff3a860f1d7c96b7e1ad5b3c7769246;p=php If ce not given than any object would do --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 482bfc237f..ac459028d8 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -401,7 +401,7 @@ static char *zend_parse_arg_impl(zval **arg, va_list *va, char **spec TSRMLS_DC) if (Z_TYPE_PP(arg) == IS_NULL && return_null) { *p = NULL; } else { - return ce->name; + return ce ? ce->name : "object"; } } }