php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #73040
Patch replace-getdtablesize revision 2016-09-07 14:48 UTC by subins2000 at gmail dot com

Patch replace-getdtablesize for Compile Failure Bug #73040

Patch version 2016-09-07 14:48 UTC

Return to Bug #73040 | Download this patch
Patch Revisions:

Developer: subins2000@gmail.com

--- php_fopen_wrapper_orig.c	2016-09-07 20:15:35.477040000 +0530
+++ php_fopen_wrapper.c	2016-09-07 20:15:51.501040341 +0530
@@ -324,7 +324,7 @@
 		}
 
 #if HAVE_UNISTD_H
-		dtablesize = getdtablesize();
+		dtablesize = OPEN_MAX;
 #else
 		dtablesize = INT_MAX;
 #endif
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Jan 17 18:01:22 2021 UTC