Skip to content

Commit

Permalink
Removing trim() that was performed when reading a file with a lock() …
Browse files Browse the repository at this point in the history
…enabled. This was causing a failure in php5.
  • Loading branch information
markstory committed May 29, 2010
1 parent 25a6a3c commit 7cde309
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cake/libs/file.php
Expand Up @@ -185,7 +185,6 @@ function read($bytes = false, $mode = 'rb', $force = false) {
while (!feof($this->handle)) {
$data .= fgets($this->handle, 4096);
}
$data = trim($data);

if ($this->lock !== null) {
flock($this->handle, LOCK_UN);
Expand Down

0 comments on commit 7cde309

Please sign in to comment.