Patch patch-error-checking.diff for dio Bug #62188
Patch version 2012-05-30 09:35 UTC
Return to Bug #62188 |
Download this patch
Patch Revisions:
Developer: daniel.mueller@inexio.net
--- dio.c.orig 2012-02-17 15:52:01.000000000 +0100
+++ dio.c 2012-05-29 18:29:54.000000000 +0200
@@ -135,7 +135,7 @@
fd = (int)lfd;
- if ((fcntl(fd, F_GETFL, 0) == -1) && (errno == EBADFD)) {
+ if ((fcntl(fd, F_GETFL, 0) == -1) && (errno == EBADF)) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Bad file descriptor %d", fd);
RETURN_FALSE;
}
|