summaryrefslogtreecommitdiff
path: root/Zend/zend_stream.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-07-22 17:49:08 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-07-22 17:49:08 +0200
commit5664035ffef093a200d220330f3b17ee9b601fb2 (patch)
tree5bc6f394c12a78a19a93d84758a151824c1a4ca1 /Zend/zend_stream.h
parentd59aac58b3e7da7ad01a194fe9840d89725ea229 (diff)
downloadphp-git-5664035ffef093a200d220330f3b17ee9b601fb2.tar.gz
Also report errors from Zend stream reader operation
Diffstat (limited to 'Zend/zend_stream.h')
-rw-r--r--Zend/zend_stream.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_stream.h b/Zend/zend_stream.h
index 87aec7aff3..66a7e5198c 100644
--- a/Zend/zend_stream.h
+++ b/Zend/zend_stream.h
@@ -29,7 +29,7 @@
* These functions are private to the engine.
* */
typedef size_t (*zend_stream_fsizer_t)(void* handle);
-typedef size_t (*zend_stream_reader_t)(void* handle, char *buf, size_t len);
+typedef ssize_t (*zend_stream_reader_t)(void* handle, char *buf, size_t len);
typedef void (*zend_stream_closer_t)(void* handle);
#define ZEND_MMAP_AHEAD 32