From ef058cdd9a08c98d0d40ed0f987eec8bc2be9308 Mon Sep 17 00:00:00 2001 From: Edin Kadribasic Date: Tue, 5 Sep 2006 11:54:15 +0000 Subject: [PATCH] Search for php.ini in CWD in all sapi's *but* CLI. This patch reverses wrong behavaiour introduced before the release of 5.1.0. # We should probably consider killing adding CWD php.ini lookup # altogether. --- main/php_ini.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/php_ini.c b/main/php_ini.c index 25fbe0f487..92f2a4dda0 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -333,8 +333,8 @@ int php_init_config(TSRMLS_D) } #endif - /* Add cwd (only with CLI) */ - if (strcmp(sapi_module.name, "cli") == 0) { + /* Add cwd (not with CLI) */ + if (strcmp(sapi_module.name, "cli") != 0) { if (*php_ini_search_path) { strcat(php_ini_search_path, paths_separator); } -- 2.50.1