summaryrefslogtreecommitdiff
path: root/ext/json/JSON_parser.c
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2014-05-05 17:28:22 +0200
committerNikita Popov <nikic@php.net>2014-05-05 17:28:22 +0200
commit4d22be992ca23e9ec6f46962b88277229d7f4ace (patch)
treed0928f6d53dfbd2fe1ddd376d72b2313900ba483 /ext/json/JSON_parser.c
parenta636c4c03f89e626f6b778a3e3ab40e989ad225d (diff)
downloadphp-git-4d22be992ca23e9ec6f46962b88277229d7f4ace.tar.gz
Fix ZTS
Diffstat (limited to 'ext/json/JSON_parser.c')
-rw-r--r--ext/json/JSON_parser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/json/JSON_parser.c b/ext/json/JSON_parser.c
index 3b943fd336..c7fc6b4f2f 100644
--- a/ext/json/JSON_parser.c
+++ b/ext/json/JSON_parser.c
@@ -291,7 +291,7 @@ static int dehexchar(char c)
}
-static void json_create_zval(zval *z, smart_str *buf, int type, int options)
+static void json_create_zval(zval *z, smart_str *buf, int type, int options TSRMLS_DC)
{
if (type == IS_LONG)
{
@@ -557,7 +557,7 @@ parse_JSON_ex(JSON_parser jp, zval *z, unsigned short utf16_json[], int length,
zval mval;
smart_str_0(&buf);
- json_create_zval(&mval, &buf, type, options);
+ json_create_zval(&mval, &buf, type, options TSRMLS_CC);
add_assoc_or_property(assoc, &jp->the_zstack[jp->top], &key, &mval TSRMLS_CC);
@@ -580,7 +580,7 @@ parse_JSON_ex(JSON_parser jp, zval *z, unsigned short utf16_json[], int length,
zval mval;
smart_str_0(&buf);
- json_create_zval(&mval, &buf, type, options);
+ json_create_zval(&mval, &buf, type, options TSRMLS_CC);
add_next_index_zval(&jp->the_zstack[jp->top], &mval);
buf.s->len = 0;
JSON_RESET_TYPE();
@@ -689,7 +689,7 @@ parse_JSON_ex(JSON_parser jp, zval *z, unsigned short utf16_json[], int length,
jp->stack[jp->top] == MODE_ARRAY))
{
smart_str_0(&buf);
- json_create_zval(&mval, &buf, type, options);
+ json_create_zval(&mval, &buf, type, options TSRMLS_CC);
}
switch (jp->stack[jp->top]) {