mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Tweak the API to be more consistent.
Update docs.
This commit is contained in:
parent
d4e63bc5bf
commit
30647934a4
6 changed files with 144 additions and 67 deletions
|
@ -107,7 +107,7 @@ PHPAPI int php_stream_puts(php_stream *stream, char *buf);
|
|||
PHPAPI size_t php_stream_copy_to_stream(php_stream *src, php_stream *dest, size_t maxlen);
|
||||
/* read all data from stream and put into a buffer. Caller must free buffer when done.
|
||||
* The copy will use mmap if available. */
|
||||
PHPAPI size_t php_stream_read_all(php_stream *src, char **buf, int persistent);
|
||||
PHPAPI size_t php_stream_copy_to_mem(php_stream *src, char **buf, size_t maxlen, int persistent);
|
||||
|
||||
/* maybe implement someday */
|
||||
#define php_stream_error(stream) (0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue