]> granicus.if.org Git - php/commitdiff
ZTS fix
authorDmitry Stogov <dmitry@php.net>
Wed, 18 Oct 2006 07:41:33 +0000 (07:41 +0000)
committerDmitry Stogov <dmitry@php.net>
Wed, 18 Oct 2006 07:41:33 +0000 (07:41 +0000)
ext/json/JSON_parser.c

index 3e077a0ad2ef0ff32d5832d56529b6d6ab7251fc..d8d715c6526a56015a328001aabfcc14143b8328 100644 (file)
@@ -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)]) {