|
|
| version 1.1.1.2, 2012/05/29 12:34:43 | version 1.1.1.5, 2014/06/15 20:03:57 |
|---|---|
| Line 2 | Line 2 |
| +----------------------------------------------------------------------+ | +----------------------------------------------------------------------+ |
| | PHP Version 5 | | | PHP Version 5 | |
| +----------------------------------------------------------------------+ | +----------------------------------------------------------------------+ |
| | Copyright (c) 1997-2012 The PHP Group | | | Copyright (c) 1997-2014 The PHP Group | |
| +----------------------------------------------------------------------+ | +----------------------------------------------------------------------+ |
| | This source file is subject to version 3.01 of the PHP license, | | | This source file is subject to version 3.01 of the PHP license, | |
| | that is bundled with this package in the file LICENSE, and is | | | that is bundled with this package in the file LICENSE, and is | |
| Line 125 static void php_info_print_stream_hash(const char *nam | Line 125 static void php_info_print_stream_hash(const char *nam |
| zend_hash_internal_pointer_reset_ex(ht, &pos); | zend_hash_internal_pointer_reset_ex(ht, &pos); |
| while (zend_hash_get_current_key_ex(ht, &key, &len, NULL, 0, &pos) == HASH_KEY_IS_STRING) | while (zend_hash_get_current_key_ex(ht, &key, &len, NULL, 0, &pos) == HASH_KEY_IS_STRING) |
| { | { |
| php_info_print(key); | if (!sapi_module.phpinfo_as_text) { |
| php_info_print_html_esc(key, len-1); | |
| } else { | |
| php_info_print(key); | |
| } | |
| zend_hash_move_forward_ex(ht, &pos); | zend_hash_move_forward_ex(ht, &pos); |
| if (zend_hash_get_current_key_ex(ht, &key, &len, NULL, 0, &pos) == HASH_KEY_IS_STRING) { | if (zend_hash_get_current_key_ex(ht, &key, &len, NULL, 0, &pos) == HASH_KEY_IS_STRING) { |
| php_info_print(", "); | php_info_print(", "); |
| Line 291 void php_info_print_style(TSRMLS_D) | Line 295 void php_info_print_style(TSRMLS_D) |
| PHPAPI char *php_info_html_esc(char *string TSRMLS_DC) | PHPAPI char *php_info_html_esc(char *string TSRMLS_DC) |
| { | { |
| size_t new_len; | size_t new_len; |
| return php_escape_html_entities(string, strlen(string), &new_len, 0, ENT_QUOTES, NULL TSRMLS_CC); | return php_escape_html_entities((unsigned char *) string, strlen(string), &new_len, 0, ENT_QUOTES, NULL TSRMLS_CC); |
| } | } |
| /* }}} */ | /* }}} */ |