From 7e914380c9bef74f80ca9c96e033811ea4adee54 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 25 Jul 2004 18:20:33 +0000 Subject: [PATCH] - Show visibility errors (try to fix #29354) --- Zend/zend_reflection_api.c | 3 +++ ext/reflection/php_reflection.c | 3 +++ 2 files changed, 6 insertions(+) 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 "); -- 2.50.1