summaryrefslogtreecommitdiff
path: root/main/streams/memory.c
diff options
context:
space:
mode:
authorMichael Wallner <mike@php.net>2014-07-02 15:41:59 +0200
committerMichael Wallner <mike@php.net>2014-07-03 20:40:41 +0200
commitdeee0011e1b0e2742080ea6db213b7e3f6457e51 (patch)
treecbf09641a85d70f45eb1bdff67acf05eab929b13 /main/streams/memory.c
parent438b6c5258021d72be3d48d46031ae516aaa0e19 (diff)
downloadphp-git-deee0011e1b0e2742080ea6db213b7e3f6457e51.tar.gz
restore API compatibility
Diffstat (limited to 'main/streams/memory.c')
-rw-r--r--main/streams/memory.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/streams/memory.c b/main/streams/memory.c
index 1f6bfbde04..09421ea49d 100644
--- a/main/streams/memory.c
+++ b/main/streams/memory.c
@@ -357,7 +357,6 @@ typedef struct {
/* {{{ */
-
static size_t php_stream_temp_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC)
{
php_stream_temp_data *ts = (php_stream_temp_data*)stream->abstract;
@@ -574,6 +573,12 @@ PHPAPI php_stream *_php_stream_temp_create_ex(int mode, size_t max_memory_usage,
}
/* }}} */
+/* {{{ _php_stream_temp_create */
+PHPAPI php_stream *_php_stream_temp_create(int mode, size_t max_memory_usage STREAMS_DC TSRMLS_DC)
+{
+ return php_stream_temp_create_ex(mode, max_memory_usage, NULL);
+}
+/* }}} */
/* {{{ _php_stream_temp_open */
PHPAPI php_stream *_php_stream_temp_open(int mode, size_t max_memory_usage, char *buf, size_t length STREAMS_DC TSRMLS_DC)