Browse files

edge case: do not remove trailing slash for root directory (Bug #33882)

  • Loading branch information...
1 parent 7e071d9 commit 882cb200ccdd5cba373c9de06419814818bea177 Hartmut Holzgraefe committed Jul 27, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 main/php_ini.c
View
2 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) {

0 comments on commit 882cb20

Please sign in to comment.