summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-07-25 18:20:33 +0000
committerMarcus Boerger <helly@php.net>2004-07-25 18:20:33 +0000
commit7e914380c9bef74f80ca9c96e033811ea4adee54 (patch)
treeb553c612a2d47c1f2a4409f4415e6dbd2606e390 /ext/reflection/php_reflection.c
parentf5cf052225ff4bc5ba7fe2c8b9f0ffcd980cac6f (diff)
downloadphp-git-7e914380c9bef74f80ca9c96e033811ea4adee54.tar.gz
- Show visibility errors (try to fix #29354)
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c3
1 files changed, 3 insertions, 0 deletions
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, "<visibilty error> ");
+ break;
}
string_printf(str, fptr->common.scope ? "method " : "function ");