@@ -61,9 +61,9 @@ PHPAPI extern char *php_ini_opened_path;
6161PHPAPI extern char * php_ini_scanned_path ;
6262PHPAPI extern char * php_ini_scanned_files ;
6363
64- static int php_info_print_html_esc (const char * str , int len ) /* {{{ */
64+ static int php_info_print_html_esc (const char * str , size_t len ) /* {{{ */
6565{
66- int written ;
66+ size_t written ;
6767 zend_string * new_str ;
6868 TSRMLS_FETCH ();
6969
@@ -77,7 +77,7 @@ static int php_info_print_html_esc(const char *str, int len) /* {{{ */
7777static int php_info_printf (const char * fmt , ...) /* {{{ */
7878{
7979 char * buf ;
80- int len , written ;
80+ size_t len , written ;
8181 va_list argv ;
8282 TSRMLS_FETCH ();
8383
@@ -1026,7 +1026,7 @@ PHPAPI void php_info_print_table_colspan_header(int num_cols, char *header) /* {
10261026 if (!sapi_module .phpinfo_as_text ) {
10271027 php_info_printf ("<tr class=\"h\"><th colspan=\"%d\">%s</th></tr>\n" , num_cols , header );
10281028 } else {
1029- spaces = (74 - strlen (header ));
1029+ spaces = (int )( 74 - strlen (header ));
10301030 php_info_printf ("%*s%s%*s\n" , (int )(spaces /2 ), " " , header , (int )(spaces /2 ), " " );
10311031 }
10321032}
@@ -1176,7 +1176,7 @@ PHP_FUNCTION(phpinfo)
11761176
11771177 /* Andale! Andale! Yee-Hah! */
11781178 php_output_start_default (TSRMLS_C );
1179- php_print_info (flag TSRMLS_CC );
1179+ php_print_info (( int ) flag TSRMLS_CC );
11801180 php_output_end (TSRMLS_C );
11811181
11821182 RETURN_TRUE ;
@@ -1218,7 +1218,7 @@ PHP_FUNCTION(phpcredits)
12181218 return ;
12191219 }
12201220
1221- php_print_credits (flag TSRMLS_CC );
1221+ php_print_credits (( int ) flag TSRMLS_CC );
12221222 RETURN_TRUE ;
12231223}
12241224/* }}} */
0 commit comments