From a1c42c6c0b789b531d54cb3055079a48abf9c2d4 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Wed, 18 Jun 2008 06:38:30 +0000 Subject: [PATCH] Ensure we initialise the position variable. See #5599 props codestyling. git-svn-id: https://develop.svn.wordpress.org/trunk@8117 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/streams.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/streams.php b/wp-includes/streams.php index 595acd775b..924394f171 100644 --- a/wp-includes/streams.php +++ b/wp-includes/streams.php @@ -159,7 +159,8 @@ class CachedFileReader extends StringReader { return false; } $this->_str = fread($fd, $length); - fclose($fd); + $this->_pos = 0; + fclose($fd); } else { $this->error = 2; // File doesn't exist @@ -169,4 +170,4 @@ class CachedFileReader extends StringReader { } -?> \ No newline at end of file +?>