Skip to content

Commit

Permalink
Merge branch 'PHP-5.6' into PHP-7.0
Browse files Browse the repository at this point in the history
* PHP-5.6:
  fix error condition, part of bug #71753
  • Loading branch information
weltling committed Mar 10, 2016
2 parents 99c4445 + 8cd903e commit 8b5d09a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/standard/flock_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ PHPAPI int php_flock(int fd, int operation)
{0, 0, 0, 0, NULL};
DWORD err;

if (hdl < 0) {
if (INVALID_HANDLE_VALUE == hdl) {
_set_errno(EBADF);
return -1; /* error in file descriptor */
}
Expand Down

0 comments on commit 8b5d09a

Please sign in to comment.