diff options
| -rw-r--r-- | NEWS | 2 | ||||
| -rw-r--r-- | main/php_ini.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -14,6 +14,8 @@ PHP NEWS (Pierre) . Fixed bug #55014 (Compile failure due to improper use of ctime_r()). (Ilia) . Fixed bug #54332 (Crash in zend_mm_check_ptr // Heap corruption). (Dmitry) + . Fixed bug #54204 (Can't set a value with a PATH section in php.ini). + (Pierre) . Fixed bug #54305 (Crash in gc_remove_zval_from_buffer). (Dmitry) . Fixed bug #53727 (Inconsistent behavior of is_subclass_of with interfaces) (Ralph Schindler, Dmitry) diff --git a/main/php_ini.c b/main/php_ini.c index 5b13adb258..53e5cfc8d2 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -832,7 +832,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 |
