Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #114 from pyrus/bugfix/atomicfiletransaction-testc…
Browse files Browse the repository at this point in the history
…ases

Fixes two test failures (re: #105):
  • Loading branch information
saltybeagle committed Nov 8, 2012
2 parents 333cece + b8136dc commit 370acda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pyrus/AtomicFileTransaction/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function createOrOpenPath($relativePath, $contents = null, $mode = null)
throw new IOException('Unable to open ' . $relativePath . ' for writing in ' . $this->journalPath);
}

if (false === stream_copy_to_stream($contents, $fp)) {
if (0 == stream_copy_to_stream($contents, $fp)) {
fclose($fp);
throw new IOException('Unable to copy to ' . $relativePath . ' in ' . $this->journalPath);
}
Expand Down

0 comments on commit 370acda

Please sign in to comment.