]> granicus.if.org Git - php/commitdiff
If ce not given than any object would do
authorMarcus Boerger <helly@php.net>
Thu, 21 Aug 2003 15:24:33 +0000 (15:24 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 21 Aug 2003 15:24:33 +0000 (15:24 +0000)
Zend/zend_API.c

index 482bfc237f8b760e06ceeae60eedfe6162b8a327..ac459028d837172ef1ae2fca45ccc0b68ae07053 100644 (file)
@@ -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";
                                        }
                                }
                        }