From 00a461a9895fea33699fadc683ba095dd13d7600 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 1 Jun 2009 14:03:24 +0000 Subject: [PATCH] fix ZTS build --- ext/json/json.c | 4 ++-- ext/json/php_json.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/json/json.c b/ext/json/json.c index f9efc342171..c261167df32 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -393,7 +393,7 @@ PHPAPI void php_json_encode(smart_str *buf, zval *val TSRMLS_DC) /* {{{ */ } /* }}} */ -PHPAPI void php_json_decode(zval *return_value, char *buf, int buf_len, zend_bool assoc) /* {{{ */ +PHPAPI void php_json_decode(zval *return_value, char *buf, int buf_len, zend_bool assoc TSRMLS_DC) /* {{{ */ { unsigned short *utf16; int utf16_len; @@ -487,7 +487,7 @@ static PHP_FUNCTION(json_decode) RETURN_NULL(); } - php_json_decode(return_value, parameter, parameter_len, assoc); + php_json_decode(return_value, parameter, parameter_len, assoc TSRMLS_CC); } /* }}} */ diff --git a/ext/json/php_json.h b/ext/json/php_json.h index ed2d4860464..c022be7e58d 100644 --- a/ext/json/php_json.h +++ b/ext/json/php_json.h @@ -45,7 +45,7 @@ extern zend_module_entry json_module_entry; #endif PHPAPI void php_json_encode(smart_str *buf, zval *val TSRMLS_DC); -PHPAPI void php_json_decode(zval *return_value, char *buf, int buf_len, zend_bool assoc); +PHPAPI void php_json_decode(zval *return_value, char *buf, int buf_len, zend_bool assoc TSRMLS_DC); #endif /* PHP_JSON_H */