php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #66239
Patch fpm-syslog-bug.patch revision 2013-12-06 11:56 UTC by krakjoe@php.net
revision 2013-12-06 08:04 UTC by krakjoe@php.net
Patch fpm-syslog-bug-alternate.patch revision 2013-12-06 11:55 UTC by krakjoe@php.net

Patch fpm-syslog-bug.patch for FPM related Bug #66239

Patch version 2013-12-06 11:56 UTC

Return to Bug #66239 | Download this patch
This patch renders other patches obsolete

Obsolete patches:

Patch Revisions:

Developer: krakjoe@php.net

diff --git a/sapi/fpm/fpm/fpm_conf.c b/sapi/fpm/fpm/fpm_conf.c
index cd5fc34..9f69765 100644
--- a/sapi/fpm/fpm/fpm_conf.c
+++ b/sapi/fpm/fpm/fpm_conf.c
@@ -673,7 +673,8 @@ static int fpm_evaluate_full_path(char **path, struct fpm_worker_pool_s *wp, cha
 	char *prefix = NULL;
 	char *full_path;
 
-	if (!path || !*path || **path == '/') {
+	if (!path || !*path || **path == '/' || 
+		(strncasecmp(*path, "syslog", sizeof("syslog")) == SUCCESS)) {
 		return 0;
 	}
 
@@ -711,7 +712,7 @@ static int fpm_evaluate_full_path(char **path, struct fpm_worker_pool_s *wp, cha
 			}
 		}
 	}
-
+	
 	if (*path) {
 		spprintf(&full_path, 0, "%s/%s", prefix, *path);
 		free(*path);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC