mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
fix warnings
This commit is contained in:
parent
7a94243402
commit
570ed1a1a4
@ -638,6 +638,9 @@ PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const c
|
||||
}
|
||||
|
||||
filename_length = (int)strlen(filename);
|
||||
#ifndef PHP_WIN32
|
||||
(void) filename_length;
|
||||
#endif
|
||||
|
||||
/* Relative path open */
|
||||
if ((*filename == '.')
|
||||
|
@ -357,6 +357,10 @@ static void php_load_zend_extension_cb(void *arg)
|
||||
char *filename = *((char **) arg);
|
||||
const int length = (int)strlen(filename);
|
||||
|
||||
#ifndef PHP_WIN32
|
||||
(void) length;
|
||||
#endif
|
||||
|
||||
if (IS_ABSOLUTE_PATH(filename, length)) {
|
||||
zend_load_extension(filename);
|
||||
} else {
|
||||
|
@ -162,8 +162,8 @@ PHPAPI ZEND_EXTERN_MODULE_GLOBALS(output);
|
||||
#define PHPWRITE(str, str_len) php_output_write((str), (str_len))
|
||||
#define PHPWRITE_H(str, str_len) php_output_write_unbuffered((str), (str_len))
|
||||
|
||||
#define PUTC(c) (php_output_write(&(c), 1), (c))
|
||||
#define PUTC_H(c) (php_output_write_unbuffered(&(c), 1), (c))
|
||||
#define PUTC(c) (php_output_write((const char *) &(c), 1), (c))
|
||||
#define PUTC_H(c) (php_output_write_unbuffered((const char *) &(c), 1), (c))
|
||||
|
||||
#define PUTS(str) do { \
|
||||
const char *__str = (str); \
|
||||
|
@ -425,7 +425,7 @@ static int multipart_buffer_headers(multipart_buffer *self, zend_llist *header)
|
||||
char *value = NULL;
|
||||
|
||||
if (php_rfc1867_encoding_translation()) {
|
||||
self->input_encoding = zend_multibyte_encoding_detector(line, strlen(line), self->detect_order, self->detect_order_size);
|
||||
self->input_encoding = zend_multibyte_encoding_detector((const unsigned char *) line, strlen(line), self->detect_order, self->detect_order_size);
|
||||
}
|
||||
|
||||
/* space in the beginning means same header */
|
||||
|
@ -1411,6 +1411,9 @@ PHPAPI php_stream *_php_stream_fopen_with_path(const char *filename, const char
|
||||
}
|
||||
|
||||
filename_length = (int)strlen(filename);
|
||||
#ifndef PHP_WIN32
|
||||
(void) filename_length;
|
||||
#endif
|
||||
|
||||
/* Relative path open */
|
||||
if (*filename == '.' && (IS_SLASH(filename[1]) || filename[1] == '.')) {
|
||||
|
Loading…
Reference in New Issue
Block a user