From e3b610c245381d1e27338ead4de4274d91b00d25 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 5 Aug 2014 20:55:15 +0400 Subject: [PATCH] typo --- main/streams/userspace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/streams/userspace.c b/main/streams/userspace.c index 2bbb1ec277..058b9d707e 100644 --- a/main/streams/userspace.c +++ b/main/streams/userspace.c @@ -385,7 +385,7 @@ static php_stream *user_wrapper_opener(php_stream_wrapper *wrapper, const char * stream = php_stream_alloc_rel(&php_stream_userspace_ops, us, 0, mode); /* if the opened path is set, copy it out */ - if (Z_ISREF(args[2]) && Z_TYPE_P(Z_REFVAL(args[3])) == IS_STRING && opened_path) { + if (Z_ISREF(args[3]) && Z_TYPE_P(Z_REFVAL(args[3])) == IS_STRING && opened_path) { *opened_path = estrndup(Z_STRVAL_P(Z_REFVAL(args[3])), Z_STRLEN_P(Z_REFVAL(args[3]))); } -- 2.50.1