summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-08-04 21:31:13 +0400
committerDmitry Stogov <dmitry@zend.com>2014-08-04 21:31:13 +0400
commitb5590a2f874f7370c16619eb87bb89268aa7fe03 (patch)
tree68d6490f91b64cca4639915bb08eef1bbe4f6858 /main
parent415482ac0abfbad8fa1416b2048a91d2e0ff2d4a (diff)
downloadphp-git-b5590a2f874f7370c16619eb87bb89268aa7fe03.tar.gz
Fixed incorrect arguments handling
Diffstat (limited to 'main')
-rw-r--r--main/streams/userspace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams/userspace.c b/main/streams/userspace.c
index a759f3da24..12839274c8 100644
--- a/main/streams/userspace.c
+++ b/main/streams/userspace.c
@@ -370,6 +370,7 @@ static php_stream *user_wrapper_opener(php_stream_wrapper *wrapper, const char *
ZVAL_STRING(&args[1], mode);
ZVAL_LONG(&args[2], options);
ZVAL_NEW_REF(&args[3], &EG(uninitialized_zval));
+ ZVAL_UNDEF(&args[4]);
ZVAL_STRING(&zfuncname, USERSTREAM_OPEN);
@@ -1121,7 +1122,6 @@ static int user_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int
zval_ptr_dtor(&zretval);
zval_ptr_dtor(&zfuncname);
- zval_ptr_dtor(&args[1]);
zval_ptr_dtor(&args[0]);
return ret;