mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6: fix error condition, part of bug #71753
This commit is contained in:
commit
8b5d09a195
@ -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 */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user