Permalink
Browse files

- fix bug #54204, Can't set a value with a PATH section in php.ini

  • Loading branch information...
1 parent b150a6d commit ba22d8a37b0a0cd4e5f5fd537c58d72d8212298c @pierrejoye pierrejoye committed Jul 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 main/php_ini.c
View
2 main/php_ini.c
@@ -828,7 +828,7 @@ PHPAPI void php_ini_activate_per_dir_config(char *path, uint path_len TSRMLS_DC)
#if PHP_WIN32
memcpy(path_bak, path, path_len);
- path_bak[path_len - 1] = 0;
+ path_bak[path_len] = 0;
TRANSLATE_SLASHES_LOWER(path_bak);
path = path_bak;
#endif

0 comments on commit ba22d8a

Please sign in to comment.