Index: includes/stream_wrappers.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/stream_wrappers.inc,v
retrieving revision 1.20
diff -u -p -r1.20 stream_wrappers.inc
--- includes/stream_wrappers.inc	17 Aug 2010 22:05:22 -0000	1.20
+++ includes/stream_wrappers.inc	20 Aug 2010 18:29:58 -0000
@@ -386,7 +386,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;
