php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #62188
Patch patch-error-checking.diff revision 2012-05-30 09:35 UTC by daniel dot mueller at inexio dot net

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;
 	}
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 06:01:29 2024 UTC