|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patch fpm-syslog-bug.patch for FPM related Bug #66239Patch version 2013-12-06 08:04 UTC Return to Bug #66239 | Download this patchThis patch is obsolete Obsoleted by 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..a9e14cd 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")-1) == 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);
|
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 10:00:02 2025 UTC |