From a1130e84bf07794e7999238b9da4b164765946b4 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 18 Oct 2006 07:41:33 +0000 Subject: [PATCH] ZTS fix --- ext/json/JSON_parser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/json/JSON_parser.c b/ext/json/JSON_parser.c index 3e077a0ad2..d8d715c652 100644 --- a/ext/json/JSON_parser.c +++ b/ext/json/JSON_parser.c @@ -278,7 +278,7 @@ static int dehexchar(char c) } -static void json_create_zval(zval **z, smart_str *buf, int type) +static void json_create_zval(zval **z, smart_str *buf, int type TSRMLS_DC) { ALLOC_INIT_ZVAL(*z); @@ -477,7 +477,7 @@ JSON_parser(zval *z, unsigned short p[], int length, int assoc TSRMLS_DC) zval *mval; smart_str_0(&buf); - json_create_zval(&mval, &buf, type); + json_create_zval(&mval, &buf, type TSRMLS_CC); if (!assoc) { @@ -549,7 +549,7 @@ JSON_parser(zval *z, unsigned short p[], int length, int assoc TSRMLS_DC) zval *mval; smart_str_0(&buf); - json_create_zval(&mval, &buf, type); + json_create_zval(&mval, &buf, type TSRMLS_CC); add_next_index_zval(JSON(the_zstack)[JSON(the_top)], mval); buf.len = 0; JSON_RESET_TYPE(); @@ -594,7 +594,7 @@ JSON_parser(zval *z, unsigned short p[], int length, int assoc TSRMLS_DC) JSON(the_stack[JSON(the_top)]) == MODE_ARRAY)) { smart_str_0(&buf); - json_create_zval(&mval, &buf, type); + json_create_zval(&mval, &buf, type TSRMLS_CC); } switch (JSON(the_stack)[JSON(the_top)]) { -- 2.50.1