From: Julien Pauli Date: Mon, 17 Feb 2014 09:25:40 +0000 (+0100) Subject: Export JsonSerializable Interface (bug #65753) X-Git-Tag: php-5.6.0alpha3~1^2~71 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a1d248d4e908a5a210b92f43ec8f36808b7d288;p=php Export JsonSerializable Interface (bug #65753) --- diff --git a/ext/json/json.c b/ext/json/json.c index f38cc11ac5..9140096bf5 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -39,7 +39,7 @@ static PHP_FUNCTION(json_last_error_msg); static const char digits[] = "0123456789abcdef"; -zend_class_entry *php_json_serializable_ce; +PHP_JSON_API zend_class_entry *php_json_serializable_ce; ZEND_DECLARE_MODULE_GLOBALS(json) diff --git a/ext/json/php_json.h b/ext/json/php_json.h index 637c5eae5e..e00de6a27b 100644 --- a/ext/json/php_json.h +++ b/ext/json/php_json.h @@ -51,7 +51,7 @@ ZEND_END_MODULE_GLOBALS(json) PHP_JSON_API void php_json_encode(smart_str *buf, zval *val, int options TSRMLS_DC); PHP_JSON_API void php_json_decode_ex(zval *return_value, char *str, int str_len, int options, long depth TSRMLS_DC); -extern zend_class_entry *php_json_serializable_ce; +extern PHP_JSON_API zend_class_entry *php_json_serializable_ce; /* json_encode() options */