Browse Source

- Show visibility errors (try to fix #29354)

PHP-5.1
Marcus Boerger 22 years ago
parent
commit
7e914380c9
  1. 3
      Zend/zend_reflection_api.c
  2. 3
      ext/reflection/php_reflection.c

3
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, "<visibilty error> ");
break;
}
string_printf(str, fptr->common.scope ? "method " : "function ");

3
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 ");

Loading…
Cancel
Save