php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch export-json-serializeable-ce.patch for json Bug #65753

Patch version 2013-09-24 13:16 UTC

Return to Bug #65753 | Download this patch
Patch Revisions:

Developer: chobieeee@php.net

diff --git a/ext/json/json.c b/ext/json/json.c
index 782375e..1505a2b 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 ec707ce..b793a53 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 */
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 17:01:32 2024 UTC