Skip to content

Commit

Permalink
Merge pull request #378 from codeasashu/fix-flock-warning
Browse files Browse the repository at this point in the history
Fixed flock warn
  • Loading branch information
kenjis committed Jul 10, 2021
2 parents 202441b + d8ce4c0 commit 6119e8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/tests/_ci_phpunit_test/patcher/IncludeStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ public function stream_cast($cast_as)

public function stream_lock($operation)
{
if ($operation === '0' || $operation === 0) {
$operation = LOCK_EX;
}
return flock($this->resource, $operation);
}

Expand Down

0 comments on commit 6119e8c

Please sign in to comment.