mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +08:00
Fixed compiler warning
This commit is contained in:
parent
d74f9ff550
commit
3ff5fb0631
@ -275,7 +275,7 @@ static php_stream_filter *php_zlib_filter_create(const char *filtername, zval *f
|
||||
/* Create this filter */
|
||||
data = pecalloc(1, sizeof(php_zlib_filter_data), persistent);
|
||||
if (!data) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %d bytes.", sizeof(php_zlib_filter_data));
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %ld bytes.", sizeof(php_zlib_filter_data));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -287,14 +287,14 @@ static php_stream_filter *php_zlib_filter_create(const char *filtername, zval *f
|
||||
data->strm.avail_out = data->outbuf_len = data->inbuf_len = 2048;
|
||||
data->strm.next_in = data->inbuf = (Bytef *) pemalloc(data->inbuf_len, persistent);
|
||||
if (!data->inbuf) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %d bytes.", data->inbuf_len);
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %ld bytes.", data->inbuf_len);
|
||||
pefree(data, persistent);
|
||||
return NULL;
|
||||
}
|
||||
data->strm.avail_in = 0;
|
||||
data->strm.next_out = data->outbuf = (Bytef *) pemalloc(data->outbuf_len, persistent);
|
||||
if (!data->outbuf) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %d bytes.", data->outbuf_len);
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %ld bytes.", data->outbuf_len);
|
||||
pefree(data->inbuf, persistent);
|
||||
pefree(data, persistent);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user