Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  fix error condition, part of bug #71753
This commit is contained in:
Anatol Belski 2016-03-10 11:39:16 +01:00
commit 8b5d09a195

View File

@ -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 */
}