From: Dmitry Stogov Date: Tue, 5 Aug 2014 16:55:15 +0000 (+0400) Subject: typo X-Git-Tag: POST_PHPNG_MERGE~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3b610c245381d1e27338ead4de4274d91b00d25;p=php typo --- 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]))); }