Skip to content

Commit 88ca46d

Browse files
committed
fix datatype mismatches
1 parent f010efc commit 88ca46d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Zend/zend_highlight.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ZEND_API void zend_html_putc(char c)
5454
}
5555

5656

57-
ZEND_API void zend_html_puts(const char *s, uint len TSRMLS_DC)
57+
ZEND_API void zend_html_puts(const char *s, size_t len TSRMLS_DC)
5858
{
5959
const unsigned char *ptr = (const unsigned char*)s, *end = ptr + len;
6060
unsigned char *filtered = NULL;

Zend/zend_highlight.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ ZEND_API void zend_strip(TSRMLS_D);
4444
ZEND_API int highlight_file(char *filename, zend_syntax_highlighter_ini *syntax_highlighter_ini TSRMLS_DC);
4545
ZEND_API int highlight_string(zval *str, zend_syntax_highlighter_ini *syntax_highlighter_ini, char *str_name TSRMLS_DC);
4646
ZEND_API void zend_html_putc(char c);
47-
ZEND_API void zend_html_puts(const char *s, uint len TSRMLS_DC);
47+
ZEND_API void zend_html_puts(const char *s, size_t len TSRMLS_DC);
4848
END_EXTERN_C()
4949

5050
extern zend_syntax_highlighter_ini syntax_highlighter_ini;

ext/standard/info.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ PHPAPI extern char *php_ini_opened_path;
6161
PHPAPI extern char *php_ini_scanned_path;
6262
PHPAPI 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) /* {{{ */
7777
static 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

Comments
 (0)