summaryrefslogtreecommitdiff
path: root/main/php_streams.h
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2014-03-05 11:41:21 +0800
committerXinchen Hui <laruence@gmail.com>2014-03-05 11:41:21 +0800
commit1c427513160eb88d5b73b2883c48eaf204ad20f4 (patch)
tree7f778a744d6810618828e9b559235fc63433ba97 /main/php_streams.h
parent2cdc90bd94222e869980c14c7444390337fdcd0e (diff)
downloadphp-git-1c427513160eb88d5b73b2883c48eaf204ad20f4.tar.gz
Refactor stream_get_record to return zend_string
Diffstat (limited to 'main/php_streams.h')
-rw-r--r--main/php_streams.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_streams.h b/main/php_streams.h
index 39a4a961e7..7e9b6a6c26 100644
--- a/main/php_streams.h
+++ b/main/php_streams.h
@@ -322,7 +322,7 @@ PHPAPI char *_php_stream_get_line(php_stream *stream, char *buf, size_t maxlen,
#define php_stream_gets(stream, buf, maxlen) _php_stream_get_line((stream), (buf), (maxlen), NULL TSRMLS_CC)
#define php_stream_get_line(stream, buf, maxlen, retlen) _php_stream_get_line((stream), (buf), (maxlen), (retlen) TSRMLS_CC)
-PHPAPI char *php_stream_get_record(php_stream *stream, size_t maxlen, size_t *returned_len, const char *delim, size_t delim_len TSRMLS_DC);
+PHPAPI zend_string *php_stream_get_record(php_stream *stream, size_t maxlen, const char *delim, size_t delim_len TSRMLS_DC);
/* CAREFUL! this is equivalent to puts NOT fputs! */
PHPAPI int _php_stream_puts(php_stream *stream, const char *buf TSRMLS_DC);