mirror of
https://github.com/php/php-src.git
synced 2026-04-29 03:03:26 +02:00
int -> size_t
This commit is contained in:
+1
-1
@@ -511,7 +511,7 @@ END_EXTERN_C()
|
||||
#define PHP_STREAM_COPY_ALL ((size_t)-1)
|
||||
|
||||
BEGIN_EXTERN_C()
|
||||
PHPAPI size_t _php_stream_ucopy_to_stream(php_stream *src, php_stream *dest, size_t maxlen, int maxchars STREAMS_DC TSRMLS_DC);
|
||||
PHPAPI size_t _php_stream_ucopy_to_stream(php_stream *src, php_stream *dest, size_t maxlen, size_t maxchars STREAMS_DC TSRMLS_DC);
|
||||
PHPAPI size_t _php_stream_copy_to_stream(php_stream *src, php_stream *dest, size_t maxlen STREAMS_DC TSRMLS_DC);
|
||||
/* Preserve "characters" semantics by having maxlen refer to maxchars in a unicode context */
|
||||
#define php_stream_copy_to_stream(src, dest, maxlen) ( ((src)->readbuf_type == IS_STRING) \
|
||||
|
||||
@@ -1734,7 +1734,7 @@ PHPAPI size_t _php_stream_copy_to_mem_ex(php_stream *src, zend_uchar rettype, vo
|
||||
}
|
||||
|
||||
/* Designed for copying UChars (taking into account both maxlen and maxchars) */
|
||||
PHPAPI size_t _php_stream_ucopy_to_stream(php_stream *src, php_stream *dest, size_t maxlen, int maxchars STREAMS_DC TSRMLS_DC)
|
||||
PHPAPI size_t _php_stream_ucopy_to_stream(php_stream *src, php_stream *dest, size_t maxlen, size_t maxchars STREAMS_DC TSRMLS_DC)
|
||||
{
|
||||
size_t haveread = 0;
|
||||
php_stream_statbuf ssbuf;
|
||||
|
||||
Reference in New Issue
Block a user