]> granicus.if.org Git - php/commitdiff
Export JsonSerializable Interface (bug #65753)
authorJulien Pauli <jpauli@php.net>
Mon, 17 Feb 2014 09:25:40 +0000 (10:25 +0100)
committerJulien Pauli <jpauli@php.net>
Mon, 17 Feb 2014 09:38:51 +0000 (10:38 +0100)
ext/json/json.c
ext/json/php_json.h

index f38cc11ac5fe19f4e94afe2145cdae5970654dcb..9140096bf5e3e19a34a65e743da03099c23435a4 100644 (file)
@@ -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)
 
index 637c5eae5e095d25a4dcf6ddace48b875cdcff3a..e00de6a27b8cde2c1a68e11de99f8bb7ffdc9910 100644 (file)
@@ -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 */