Skip to content

Commit 015a52c

Browse files
committed
io: fix php_stream_copy_fallback return type
1 parent e832cf2 commit 015a52c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main/streams/streams.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,8 +1637,9 @@ PHPAPI zend_string *_php_stream_copy_to_mem(php_stream *src, size_t maxlen, bool
16371637

16381638
return result;
16391639
}
1640+
16401641
/* Fallback copy using stream read/write API */
1641-
static ssize_t php_stream_copy_fallback(php_stream *src, php_stream *dest, size_t maxlen, size_t *len)
1642+
static zend_result php_stream_copy_fallback(php_stream *src, php_stream *dest, size_t maxlen, size_t *len)
16421643
{
16431644
char buf[CHUNK_SIZE];
16441645
size_t haveread = 0;

0 commit comments

Comments
 (0)