diff options
author | Jérôme Loyet <fat@php.net> | 2010-11-11 17:24:27 +0000 |
---|---|---|
committer | Jérôme Loyet <fat@php.net> | 2010-11-11 17:24:27 +0000 |
commit | e1b87cce1f9ca39dc9191f5335da2d49db0db083 (patch) | |
tree | cd8cdda20f7f7597685384acc7831b4100804953 /main | |
parent | b896c87bb52282243251bde25b2523a9e4a8bc34 (diff) | |
download | php-git-e1b87cce1f9ca39dc9191f5335da2d49db0db083.tar.gz |
- Fixed #52045 (FPM tries to open php.ini from the current dir)
- Add php_ini_ignore_cwd to _sapi_module_struct
Diffstat (limited to 'main')
-rw-r--r-- | main/SAPI.h | 1 | ||||
-rw-r--r-- | main/php_ini.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/main/SAPI.h b/main/SAPI.h index 9513a45bfb..1f2e361a6e 100644 --- a/main/SAPI.h +++ b/main/SAPI.h @@ -251,6 +251,7 @@ struct _sapi_module_struct { char *executable_location; int php_ini_ignore; + int php_ini_ignore_cwd; /* don't look for php.ini in the current directory */ int (*get_fd)(int *fd TSRMLS_DC); diff --git a/main/php_ini.c b/main/php_ini.c index cbbf6dc41d..841008f724 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -461,7 +461,7 @@ int php_init_config(TSRMLS_D) #endif /* Add cwd (not with CLI) */ - if (strcmp(sapi_module.name, "cli") != 0) { + if (!sapi_module.php_ini_ignore_cwd) { if (*php_ini_search_path) { strlcat(php_ini_search_path, paths_separator, search_path_size); } |