summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Pauli <jpauli@php.net>2014-02-17 10:25:40 +0100
committerJulien Pauli <jpauli@php.net>2014-02-17 10:25:40 +0100
commit786234d351c40a9b4808d1dd13d2f91f2f5314be (patch)
treece70210592b7f97c7a5f30fc03e802ea2347b813
parentf275fdcf0095a108c33f2843011c6fac54216121 (diff)
downloadphp-git-786234d351c40a9b4808d1dd13d2f91f2f5314be.tar.gz
Export JsonSerializable Interface (bug #65753)
-rw-r--r--ext/json/json.c2
-rw-r--r--ext/json/php_json.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/json/json.c b/ext/json/json.c
index 5b85b286bf..37ee314936 100644
--- a/ext/json/json.c
+++ b/ext/json/json.c
@@ -38,7 +38,7 @@ static PHP_FUNCTION(json_last_error);
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 a306d2d154..9ad2ecab6b 100644
--- a/ext/json/php_json.h
+++ b/ext/json/php_json.h
@@ -50,7 +50,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 */