Skip to content

Commit ba22d8a

Browse files
committed
- fix bug #54204, Can't set a value with a PATH section in php.ini
1 parent b150a6d commit ba22d8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/php_ini.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ PHPAPI void php_ini_activate_per_dir_config(char *path, uint path_len TSRMLS_DC)
828828

829829
#if PHP_WIN32
830830
memcpy(path_bak, path, path_len);
831-
path_bak[path_len - 1] = 0;
831+
path_bak[path_len] = 0;
832832
TRANSLATE_SLASHES_LOWER(path_bak);
833833
path = path_bak;
834834
#endif

0 commit comments

Comments
 (0)