diff options
Diffstat (limited to 'ext/standard/file.c')
-rw-r--r-- | ext/standard/file.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c index e0333df09e..85f35d1323 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -364,11 +364,7 @@ PHP_FUNCTION(flock) /* flock_values contains all possible actions if (operation & 4) we won't block on the lock */ act = flock_values[act - 1] | (operation & PHP_LOCK_NB ? LOCK_NB : 0); if (php_stream_lock(stream, act)) { -#ifdef PHP_WIN32 - if (operation && errno == ERROR_INVALID_BLOCK && wouldblock && PZVAL_IS_REF(wouldblock)) { -#else if (operation && errno == EWOULDBLOCK && wouldblock && PZVAL_IS_REF(wouldblock)) { -#endif Z_LVAL_P(wouldblock) = 1; } RETURN_FALSE; |