diff options
author | Edin Kadribasic <edink@php.net> | 2005-12-11 13:19:43 +0000 |
---|---|---|
committer | Edin Kadribasic <edink@php.net> | 2005-12-11 13:19:43 +0000 |
commit | 7a57d03c8dbc83feee7b2402cb33e7bad0872baf (patch) | |
tree | e0181cba0e4bb05cfe41d98c244fcf1d6c10d80f /ext/json/json.c | |
parent | 1cc57585d829542781c38c59833f7b3e3de7ecfa (diff) | |
download | php-git-7a57d03c8dbc83feee7b2402cb33e7bad0872baf.tar.gz |
Fixed ZTS build
Diffstat (limited to 'ext/json/json.c')
-rw-r--r-- | ext/json/json.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/json/json.c b/ext/json/json.c index e7fa452471..43902a8cb5 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -79,7 +79,7 @@ PHP_MINFO_FUNCTION(json) } /* }}} */ -static struct json_object *json_encode_r(zval *val); +static struct json_object *json_encode_r(zval *val TSRMLS_DC); static int json_determine_array_type(zval **val TSRMLS_DC) { int i; @@ -156,7 +156,7 @@ static struct json_object *json_encode_array(zval **val TSRMLS_DC) { break; if (zend_hash_get_current_data_ex(myht, (void **) &data, &pos) == SUCCESS) { - member = json_encode_r(*data); + member = json_encode_r(*data TSRMLS_CC); if (r == 0) { json_object_array_add(obj, member); } else if (r == 1) { @@ -182,7 +182,7 @@ static struct json_object *json_encode_array(zval **val TSRMLS_DC) { return obj; } -static struct json_object *json_encode_r(zval *val) { +static struct json_object *json_encode_r(zval *val TSRMLS_DC) { struct json_object *jo; switch (Z_TYPE_P(val)) { @@ -226,7 +226,7 @@ PHP_FUNCTION(json_encode) return; } - jo = json_encode_r(parameter); + jo = json_encode_r(parameter TSRMLS_CC); s = estrdup(json_object_to_json_string(jo)); |