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

Patch bug51736.patch for FPM related Bug #51736

Patch version 2010-05-08 08:22 UTC

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

Developer: fat@php.net

Index: fpm_conf.c
===================================================================
--- fpm_conf.c	(revision 298943)
+++ fpm_conf.c	(working copy)
@@ -441,15 +441,15 @@
 				return -1;
 			}
 
-			if (config->pm_max_spare_servers > config->pm_max_children ||
+			if (config->pm_min_spare_servers > config->pm_max_children ||
 					config->pm_max_spare_servers > config->pm_max_children) {
 				zlog(ZLOG_STUFF, ZLOG_ALERT, "[pool %s] min_spare_servers(%d) and max_spare_servers(%d) cannot be greater than max_children(%d)",
-						wp->config->name, config->pm_max_spare_servers, config->pm_max_spare_servers, config->pm_max_children);
+						wp->config->name, config->pm_min_spare_servers, config->pm_max_spare_servers, config->pm_max_children);
 				return -1;
 			}
 
-			if (config->pm_max_spare_servers < config->pm_max_spare_servers) {
-				zlog(ZLOG_STUFF, ZLOG_ALERT, "[pool %s] max_spare_servers(%d) must not be less than min_spare_servers(%d)", wp->config->name, config->pm_max_spare_servers, config->pm_max_spare_servers);
+			if (config->pm_max_spare_servers < config->pm_min_spare_servers) {
+				zlog(ZLOG_STUFF, ZLOG_ALERT, "[pool %s] max_spare_servers(%d) must not be less than min_spare_servers(%d)", wp->config->name, config->pm_max_spare_servers, config->pm_min_spare_servers);
 				return -1;
 			}
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 04:01:29 2024 UTC