diff options
author | Antony Dovgal <tony2001@php.net> | 2006-07-20 09:19:02 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-07-20 09:19:02 +0000 |
commit | 60720d285f6c0ec42bb15946f9eb5f5516e46b7f (patch) | |
tree | d75a5e3d40386752d28ffbcb56c0f93ab0213a02 /ext/json/JSON_parser.c | |
parent | ad8445a828df37c4fed385792cd22555fc54dfd5 (diff) | |
download | php-git-60720d285f6c0ec42bb15946f9eb5f5516e46b7f.tar.gz |
MFH: ZTS fix
Diffstat (limited to 'ext/json/JSON_parser.c')
-rw-r--r-- | ext/json/JSON_parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/json/JSON_parser.c b/ext/json/JSON_parser.c index f4ee177548..9b9340c6d9 100644 --- a/ext/json/JSON_parser.c +++ b/ext/json/JSON_parser.c @@ -338,7 +338,7 @@ static void attach_zval(json_parser *json, int up, int cur, smart_str *key, int { if (!assoc) { - add_property_zval_ex(root, (key->len ? key->c : "_empty_"), (key->len ? (key->len + 1) : sizeof("_empty_")), child); + add_property_zval_ex(root, (key->len ? key->c : "_empty_"), (key->len ? (key->len + 1) : sizeof("_empty_")), child TSRMLS_CC); #if PHP_MAJOR_VERSION >= 5 ZVAL_DELREF(child); #endif @@ -481,7 +481,7 @@ JSON_parser(zval *z, unsigned short p[], int length, int assoc TSRMLS_DC) if (!assoc) { - add_property_zval_ex(JSON(the_zstack)[JSON(the_top)], (key.len ? key.c : "_empty_"), (key.len ? (key.len + 1) : sizeof("_empty_")), mval); + add_property_zval_ex(JSON(the_zstack)[JSON(the_top)], (key.len ? key.c : "_empty_"), (key.len ? (key.len + 1) : sizeof("_empty_")), mval TSRMLS_CC); #if PHP_MAJOR_VERSION >= 5 ZVAL_DELREF(mval); #endif @@ -604,7 +604,7 @@ JSON_parser(zval *z, unsigned short p[], int length, int assoc TSRMLS_DC) { if (!assoc) { - add_property_zval_ex(JSON(the_zstack)[JSON(the_top)], (key.len ? key.c : "_empty_"), (key.len ? (key.len + 1) : sizeof("_empty_")), mval); + add_property_zval_ex(JSON(the_zstack)[JSON(the_top)], (key.len ? key.c : "_empty_"), (key.len ? (key.len + 1) : sizeof("_empty_")), mval TSRMLS_CC); #if PHP_MAJOR_VERSION >= 5 ZVAL_DELREF(mval); #endif |