]> granicus.if.org Git - php/commitdiff
typo
authorDmitry Stogov <dmitry@zend.com>
Tue, 5 Aug 2014 16:55:15 +0000 (20:55 +0400)
committerDmitry Stogov <dmitry@zend.com>
Tue, 5 Aug 2014 16:55:15 +0000 (20:55 +0400)
main/streams/userspace.c

index 2bbb1ec277276b3bbacc4f9b3e88942f4487246f..058b9d707e3941babad39fcac0eab6d204503a1d 100644 (file)
@@ -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])));
                }