diff options
author | Hartmut Holzgraefe <hholzgra@php.net> | 2005-07-27 15:13:50 +0000 |
---|---|---|
committer | Hartmut Holzgraefe <hholzgra@php.net> | 2005-07-27 15:13:50 +0000 |
commit | 882cb200ccdd5cba373c9de06419814818bea177 (patch) | |
tree | 1b216f2af7eee9f6fd378a58566790c4d8a25fab /main/php_ini.c | |
parent | 7e071d9a1f9c254448e78686f056390494a2deac (diff) | |
download | php-git-882cb200ccdd5cba373c9de06419814818bea177.tar.gz |
edge case: do not remove trailing slash for root directory (Bug #33882)
Diffstat (limited to 'main/php_ini.c')
-rw-r--r-- | main/php_ini.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_ini.c b/main/php_ini.c index 452687f2d8..410c52f52e 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -362,7 +362,7 @@ int php_init_config() if (binary_location) { char *separator_location = strrchr(binary_location, DEFAULT_SLASH); - if (separator_location) { + if (separator_location && separator_location != binary_location) { *(separator_location) = 0; } if (*php_ini_search_path) { |