You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://wiki.php.net/rfc/marking_return_value_as_important updated flock to mark its return value as NoDiscard. However, the documented usage of the function is precisely discarding the return value of flock($fp, LOCK_UN) when releasing the lock
Affected page
https://www.php.net/manual/en/function.flock.php#refsect1-function.flock-examples
Issue description
https://wiki.php.net/rfc/marking_return_value_as_important updated
flock
to mark its return value asNoDiscard
. However, the documented usage of the function is precisely discarding the return value offlock($fp, LOCK_UN)
when releasing the lockSteps to reproduce
Suggested fix
The documented usage of the function should correspond to a usage that does not trigger warnings (or the warning should be removed)
The text was updated successfully, but these errors were encountered: