Make codes more clearly, and make the static analyzer silent..

This commit is contained in:
Xinchen Hui 2011-08-08 06:49:17 +00:00
parent 6ea19be489
commit caedca8dd0

View file

@ -245,12 +245,12 @@ static void php_print_gpcse_array(char *name, uint name_length TSRMLS_DC)
} }
} else { } else {
tmp2 = **tmp; tmp2 = **tmp;
switch (Z_TYPE_PP(tmp)) { if (Z_TYPE_PP(tmp) != IS_STRING) {
default:
tmp = NULL; tmp = NULL;
zval_copy_ctor(&tmp2); zval_copy_ctor(&tmp2);
convert_to_string(&tmp2); convert_to_string(&tmp2);
case IS_STRING: }
if (!sapi_module.phpinfo_as_text) { if (!sapi_module.phpinfo_as_text) {
if (Z_STRLEN(tmp2) == 0) { if (Z_STRLEN(tmp2) == 0) {
php_info_print("<i>no value</i>"); php_info_print("<i>no value</i>");
@ -260,7 +260,7 @@ static void php_print_gpcse_array(char *name, uint name_length TSRMLS_DC)
} else { } else {
php_info_print(Z_STRVAL(tmp2)); php_info_print(Z_STRVAL(tmp2));
} }
}
if (!tmp) { if (!tmp) {
zval_dtor(&tmp2); zval_dtor(&tmp2);
} }