summaryrefslogtreecommitdiff
path: root/ext/standard/url_scanner_ex.re
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-11-03 11:15:20 +0300
committerDmitry Stogov <dmitry@zend.com>2017-11-03 11:15:20 +0300
commit9359ad73bf9f495a900f2420bbd7e41f068e2028 (patch)
tree45a9702bf3badc55811e0a84a646268a50978a53 /ext/standard/url_scanner_ex.re
parent4124c4badc53cd11c4f7acc8993c5106c99ff86d (diff)
downloadphp-git-9359ad73bf9f495a900f2420bbd7e41f068e2028.tar.gz
Added RC_DEBUG exception
Diffstat (limited to 'ext/standard/url_scanner_ex.re')
-rw-r--r--ext/standard/url_scanner_ex.re6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/standard/url_scanner_ex.re b/ext/standard/url_scanner_ex.re
index a06e8f24b4..6d4402fc7f 100644
--- a/ext/standard/url_scanner_ex.re
+++ b/ext/standard/url_scanner_ex.re
@@ -87,13 +87,17 @@ static int php_ini_on_update_tags(zend_ini_entry *entry, zend_string *new_value,
if (val) {
char *q;
size_t keylen;
+ zend_string *str;
*val++ = '\0';
for (q = key; *q; q++) {
*q = tolower(*q);
}
keylen = q - key;
- zend_hash_str_add_mem(ctx->tags, key, keylen, val, strlen(val)+1);
+ str = zend_string_init(key, keylen, 1);
+ GC_MAKE_PERSISTENT_LOCAL(str);
+ zend_hash_add_mem(ctx->tags, str, val, strlen(val)+1);
+ zend_string_release(str);
}
}