php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch fpm-bug60199.patch for FPM related Bug #60199

Patch version 2011-11-02 13:39 UTC

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

Developer: fat@php.net

Index: sapi/fpm/fpm/fpm_main.c
===================================================================
--- sapi/fpm/fpm/fpm_main.c	(revision 318604)
+++ sapi/fpm/fpm/fpm_main.c	(working copy)
@@ -1830,6 +1830,12 @@
 					if (errno == EACCES) {
 						SG(sapi_headers).http_response_code = 403;
 						PUTS("Access denied.\n");
+#ifdef ENFILE
+					} else if (errno == ENFILE) {
+						SG(sapi_headers).http_response_code = 500;
+						PUTS("Internal Error");
+						zlog(ZLOG_ERROR, "Unable to open '%s': Too many open files", SG(request_info).path_translated);
+#endif
 					} else {
 						SG(sapi_headers).http_response_code = 404;
 						PUTS("No input file specified.\n");
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 19:01:29 2024 UTC