Skip to content

Commit a02b2b8

Browse files
committed
streams: use %zu printf specifier for size_t
Rather than casting to zend_long
1 parent 051414b commit a02b2b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/streams/xp_socket.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ static ssize_t php_sockop_write(php_stream *stream, const char *buf, size_t coun
107107
if (!(stream->flags & PHP_STREAM_FLAG_SUPPRESS_ERRORS)) {
108108
estr = php_socket_strerror(err, NULL, 0);
109109
php_error_docref(NULL, E_NOTICE,
110-
"Send of " ZEND_LONG_FMT " bytes failed with errno=%d %s",
111-
(zend_long)count, err, estr);
110+
"Send of %zu bytes failed with errno=%d %s",
111+
count, err, estr);
112112
efree(estr);
113113
}
114114
}

0 commit comments

Comments
 (0)