From: Marcus Boerger Date: Sun, 25 Jul 2004 18:20:33 +0000 (+0000) Subject: - Show visibility errors (try to fix #29354) X-Git-Tag: PRE_ZEND_VM_DISPATCH_PATCH~372 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e914380c9bef74f80ca9c96e033811ea4adee54;p=php - Show visibility errors (try to fix #29354) --- diff --git a/Zend/zend_reflection_api.c b/Zend/zend_reflection_api.c index c060101dc8..219da845c7 100644 --- a/Zend/zend_reflection_api.c +++ b/Zend/zend_reflection_api.c @@ -593,6 +593,9 @@ static void _function_string(string *str, zend_function *fptr, char* indent TSRM case ZEND_ACC_PROTECTED: string_printf(str, "protected "); break; + default: + string_printf(str, " "); + break; } string_printf(str, fptr->common.scope ? "method " : "function "); diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index c060101dc8..219da845c7 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -593,6 +593,9 @@ static void _function_string(string *str, zend_function *fptr, char* indent TSRM case ZEND_ACC_PROTECTED: string_printf(str, "protected "); break; + default: + string_printf(str, " "); + break; } string_printf(str, fptr->common.scope ? "method " : "function ");