summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Punt <tpunt@php.net>2018-04-26 21:08:19 +0100
committerThomas Punt <tpunt@php.net>2018-04-26 21:08:19 +0100
commit2513da4b4c3e7e49bbc01757692056c3e2630145 (patch)
tree70aaaff2c96fd786ffef2a7291e0a2cac0d0620f
parent435e812c09b4f1751079356957e24a1a096f93f6 (diff)
downloadphp-git-2513da4b4c3e7e49bbc01757692056c3e2630145.tar.gz
Allocate default ini values into persistent memory
-rw-r--r--sapi/phpdbg/phpdbg.c2
1 files changed, 1 insertions, 1 deletions
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) /* {{{ */