From: Thomas Punt Date: Thu, 26 Apr 2018 20:08:19 +0000 (+0100) Subject: Allocate default ini values into persistent memory X-Git-Tag: php-7.1.18RC1~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2513da4b4c3e7e49bbc01757692056c3e2630145;p=php Allocate default ini values into persistent memory --- diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index abb2e38868..48784b28ad 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -1120,7 +1120,7 @@ const char phpdbg_ini_hardcoded[] = /* overwriteable ini defaults must be set in phpdbg_ini_defaults() */ #define INI_DEFAULT(name, value) \ - ZVAL_STRINGL(&tmp, value, sizeof(value) - 1); \ + ZVAL_NEW_STR(&tmp, zend_string_init(value, sizeof(value) - 1, 1)); \ zend_hash_str_update(configuration_hash, name, sizeof(name) - 1, &tmp); void phpdbg_ini_defaults(HashTable *configuration_hash) /* {{{ */