Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Fix config overriding and partial read in high request rate applications
Browse files Browse the repository at this point in the history
  • Loading branch information
necromant2005 committed May 16, 2016
1 parent f7ea8cf commit 25fae96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Listener/AbstractListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function setOptions(ListenerOptions $options)
protected function writeArrayToFile($filePath, $array)
{
$content = "<?php\nreturn " . var_export($array, 1) . ';';
file_put_contents($filePath, $content);
file_put_contents($filePath, $content, LOCK_EX);
return $this;
}
}

0 comments on commit 25fae96

Please sign in to comment.