? 694242.patch
Index: includes/stream_wrappers.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/stream_wrappers.inc,v
retrieving revision 1.21
diff -u -p -r1.21 stream_wrappers.inc
--- includes/stream_wrappers.inc	21 Oct 2010 12:09:41 -0000	1.21
+++ includes/stream_wrappers.inc	28 Dec 2010 14:15:41 -0000
@@ -398,7 +398,7 @@ abstract class DrupalLocalStreamWrapper 
     $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;
