From 2513da4b4c3e7e49bbc01757692056c3e2630145 Mon Sep 17 00:00:00 2001 From: Thomas Punt Date: Thu, 26 Apr 2018 21:08:19 +0100 Subject: Allocate default ini values into persistent memory --- sapi/phpdbg/phpdbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sapi/phpdbg/phpdbg.c') 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) /* {{{ */ -- cgit v1.2.1