PHPAPI extern char *php_ini_scanned_path;
PHPAPI extern char *php_ini_scanned_files;
-static int php_info_print_html_esc(const char *str, size_t len) /* {{{ */
+static ZEND_COLD int php_info_print_html_esc(const char *str, size_t len) /* {{{ */
{
size_t written;
zend_string *new_str;
}
/* }}} */
-static int php_info_printf(const char *fmt, ...) /* {{{ */
+static ZEND_COLD int php_info_printf(const char *fmt, ...) /* {{{ */
{
char *buf;
size_t len, written;
}
/* }}} */
-static int php_info_print(const char *str) /* {{{ */
+static zend_always_inline int php_info_print(const char *str) /* {{{ */
{
return php_output_write(str, strlen(str));
}
/* }}} */
-static void php_info_print_stream_hash(const char *name, HashTable *ht) /* {{{ */
+static ZEND_COLD void php_info_print_stream_hash(const char *name, HashTable *ht) /* {{{ */
{
zend_string *key;
}
/* }}} */
-PHPAPI void php_info_print_module(zend_module_entry *zend_module) /* {{{ */
+PHPAPI ZEND_COLD void php_info_print_module(zend_module_entry *zend_module) /* {{{ */
{
if (zend_module->info_func || zend_module->version) {
if (!sapi_module.phpinfo_as_text) {
/* {{{ php_print_gpcse_array
*/
-static void php_print_gpcse_array(char *name, uint32_t name_length)
+static ZEND_COLD void php_print_gpcse_array(char *name, uint32_t name_length)
{
zval *data, *tmp;
zend_string *string_key;
/* {{{ php_info_print_style
*/
-void php_info_print_style(void)
+PHPAPI ZEND_COLD void ZEND_COLD php_info_print_style(void)
{
php_info_printf("<style type=\"text/css\">\n");
php_info_print_css();
/* {{{ php_info_html_esc
*/
-PHPAPI zend_string *php_info_html_esc(char *string)
+PHPAPI ZEND_COLD zend_string *php_info_html_esc(char *string)
{
return php_escape_html_entities((unsigned char *) string, strlen(string), 0, ENT_QUOTES, NULL);
}
/* {{{ php_print_info_htmlhead
*/
-PHPAPI void php_print_info_htmlhead(void)
+PHPAPI ZEND_COLD void php_print_info_htmlhead(void)
{
php_info_print("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"DTD/xhtml1-transitional.dtd\">\n");
php_info_print("<html xmlns=\"http://www.w3.org/1999/xhtml\">");
/* {{{ php_print_info
*/
-PHPAPI void php_print_info(int flag)
+PHPAPI ZEND_COLD void php_print_info(int flag)
{
char **env, *tmp1, *tmp2;
zend_string *php_uname;
}
/* }}} */
-PHPAPI void php_info_print_table_start(void) /* {{{ */
+PHPAPI ZEND_COLD void php_info_print_table_start(void) /* {{{ */
{
if (!sapi_module.phpinfo_as_text) {
php_info_print("<table>\n");
}
/* }}} */
-PHPAPI void php_info_print_table_end(void) /* {{{ */
+PHPAPI ZEND_COLD void php_info_print_table_end(void) /* {{{ */
{
if (!sapi_module.phpinfo_as_text) {
php_info_print("</table>\n");
}
/* }}} */
-PHPAPI void php_info_print_box_start(int flag) /* {{{ */
+PHPAPI ZEND_COLD void php_info_print_box_start(int flag) /* {{{ */
{
php_info_print_table_start();
if (flag) {
}
/* }}} */
-PHPAPI void php_info_print_box_end(void) /* {{{ */
+PHPAPI ZEND_COLD void php_info_print_box_end(void) /* {{{ */
{
if (!sapi_module.phpinfo_as_text) {
php_info_print("</td></tr>\n");
}
/* }}} */
-PHPAPI void php_info_print_hr(void) /* {{{ */
+PHPAPI ZEND_COLD void php_info_print_hr(void) /* {{{ */
{
if (!sapi_module.phpinfo_as_text) {
php_info_print("<hr />\n");
}
/* }}} */
-PHPAPI void php_info_print_table_colspan_header(int num_cols, char *header) /* {{{ */
+PHPAPI ZEND_COLD void php_info_print_table_colspan_header(int num_cols, char *header) /* {{{ */
{
int spaces;
/* {{{ php_info_print_table_header
*/
-PHPAPI void php_info_print_table_header(int num_cols, ...)
+PHPAPI ZEND_COLD void php_info_print_table_header(int num_cols, ...)
{
int i;
va_list row_elements;
/* {{{ php_info_print_table_row_internal
*/
-static void php_info_print_table_row_internal(int num_cols,
+static ZEND_COLD void php_info_print_table_row_internal(int num_cols,
const char *value_class, va_list row_elements)
{
int i;
/* {{{ php_info_print_table_row
*/
-PHPAPI void php_info_print_table_row(int num_cols, ...)
+PHPAPI ZEND_COLD void php_info_print_table_row(int num_cols, ...)
{
va_list row_elements;
/* {{{ php_info_print_table_row_ex
*/
-PHPAPI void php_info_print_table_row_ex(int num_cols, const char *value_class,
+PHPAPI ZEND_COLD void php_info_print_table_row_ex(int num_cols, const char *value_class,
...)
{
va_list row_elements;