1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 02:02:32 +01:00

- Fixed bug #34284 (CLI phpinfo showing html on _SERVER["argv"])

This commit is contained in:
foobar
2005-08-28 01:02:54 +00:00
parent fc97c0212e
commit bc1f800a72

View File

@@ -151,14 +151,16 @@ static void php_print_gpcse_array(char *name, uint name_length TSRMLS_DC)
php_ob_get_buffer(tmp3 TSRMLS_CC);
php_end_ob_buffer(0, 0 TSRMLS_CC);
elem_esc = php_info_html_esc(Z_STRVAL_P(tmp3) TSRMLS_CC);
PUTS(elem_esc);
efree(elem_esc);
if (!sapi_module.phpinfo_as_text) {
elem_esc = php_info_html_esc(Z_STRVAL_P(tmp3) TSRMLS_CC);
PUTS(elem_esc);
efree(elem_esc);
PUTS("</pre>");
} else {
PUTS(Z_STRVAL_P(tmp3));
}
zval_ptr_dtor(&tmp3);
if (!sapi_module.phpinfo_as_text) {
PUTS("</pre>");
}
} else if (Z_TYPE_PP(tmp) != IS_STRING) {
tmp2 = **tmp;
zval_copy_ctor(&tmp2);