com php-src: Fix compilation for json_encoder: ext/json/j son.c ext/json/json_encoder.c

From: Date: Sun, 30 Nov 2014 17:47:17 +0000
Subject: com php-src: Fix compilation for json_encoder: ext/json/j son.c ext/json/json_encoder.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84720@lists.php.net to get a copy of this message
Commit: f18aae6042797dca2535158ca0a783202a9102a1 Author: Jakub Zelenka <bukka@php.net> Sun, 30 Nov 2014 17:47:17 +0000 Parents: 79e835563115cf918cc87a17c35ceb1f1f256cef Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f18aae6042797dca2535158ca0a783202a9102a1 Log: Fix compilation for json_encoder Changed paths: M ext/json/json.c M ext/json/json_encoder.c Diff: diff --git a/ext/json/json.c b/ext/json/json.c index 8042f70..f59dace 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -38,8 +38,6 @@ static PHP_FUNCTION(json_decode); static PHP_FUNCTION(json_last_error); static PHP_FUNCTION(json_last_error_msg); -static const char digits[] = "0123456789abcdef"; - PHP_JSON_API zend_class_entry *php_json_serializable_ce; ZEND_DECLARE_MODULE_GLOBALS(json) diff --git a/ext/json/json_encoder.c b/ext/json/json_encoder.c index d501a66..6976d90 100644 --- a/ext/json/json_encoder.c +++ b/ext/json/json_encoder.c @@ -30,6 +30,10 @@ #include "php_json.h" #include <zend_exceptions.h> +ZEND_DECLARE_MODULE_GLOBALS(json) + +static const char digits[] = "0123456789abcdef"; + static void json_escape_string(smart_str *buf, char *s, size_t len, int options TSRMLS_DC); static int json_determine_array_type(zval *val TSRMLS_DC) /* {{{ */

« previous php.cvs (#84720) next »