diff options
author | Julien Pauli <jpauli@php.net> | 2014-02-17 10:25:40 +0100 |
---|---|---|
committer | Julien Pauli <jpauli@php.net> | 2014-02-17 10:39:39 +0100 |
commit | 1ba76df8d0d7c9ca810947544b801038e0cfcef5 (patch) | |
tree | 38db0ba3c566ac6d7358cba785ba1f8b2d11bfa4 | |
parent | 3d1d48a85f4418968f69cd02c59736a25d2b422b (diff) | |
download | php-git-1ba76df8d0d7c9ca810947544b801038e0cfcef5.tar.gz |
Export JsonSerializable Interface (bug #65753)
-rw-r--r-- | ext/json/json.c | 2 | ||||
-rw-r--r-- | ext/json/php_json.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/json/json.c b/ext/json/json.c index d939a7deab..be59ac7347 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 */ |