From eddc7996b51c16178505812955c44febe0a5dae4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Sun, 31 Jul 2011 23:30:32 -0400 Subject: [PATCH] - Patch #1224802 by kiamlaluno: DrupalLocalStreamWrapper::stream_open() uses a local variable instead of the argument passed by reference. --- includes/stream_wrappers.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/stream_wrappers.inc b/includes/stream_wrappers.inc index 3c88f3d8f732..9a9b06171a92 100644 --- a/includes/stream_wrappers.inc +++ b/includes/stream_wrappers.inc @@ -401,7 +401,7 @@ public function stream_open($uri, $mode, $options, &$opened_path) { $this->handle = ($options & STREAM_REPORT_ERRORS) ? fopen($path, $mode) : @fopen($path, $mode); if ((bool) $this->handle && $options & STREAM_USE_PATH) { - $opened_url = $path; + $opened_path = $path; } return (bool) $this->handle; -- GitLab