diff options
author | Jakub Zelenka <bukka@php.net> | 2016-06-23 20:13:49 +0100 |
---|---|---|
committer | Jakub Zelenka <bukka@php.net> | 2016-06-26 13:26:43 +0100 |
commit | 75b86a2c22a5484c34acbbaa47520a05b3a6f5f0 (patch) | |
tree | 0945857eeb6f5101edea2e2888c1f288e6e9033d /ext/json/json.c | |
parent | 3043be37160961faf6985c242684892ee745b713 (diff) | |
download | php-git-75b86a2c22a5484c34acbbaa47520a05b3a6f5f0.tar.gz |
Replace json.precision with serialize_precision
Diffstat (limited to 'ext/json/json.c')
-rw-r--r-- | ext/json/json.c | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/ext/json/json.c b/ext/json/json.c index 0cfffe8b66..d3c6111d4d 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -93,31 +93,6 @@ static const zend_function_entry json_serializable_interface[] = { }; /* }}} */ - -/* {{{ PHP_INI_MH - */ -static PHP_INI_MH(OnSetJsonPrecision) -{ - zend_long i; - - ZEND_ATOL(i, ZSTR_VAL(new_value)); - if (i >= -1) { - JSON_G(precision) = i; - return SUCCESS; - } else { - return FAILURE; - } -} -/* }}} */ - - -/* {{{ PHP_INI - */ -PHP_INI_BEGIN() -STD_PHP_INI_ENTRY("json.precision", "-1", PHP_INI_ALL, OnSetJsonPrecision, precision, zend_json_globals, json_globals) -PHP_INI_END() -/* }}} */ - /* Register constant for options and errors */ #define PHP_JSON_REGISTER_CONSTANT(_name, _value) \ REGISTER_LONG_CONSTANT(_name, _value, CONST_CS | CONST_PERSISTENT); @@ -127,8 +102,6 @@ static PHP_MINIT_FUNCTION(json) { zend_class_entry ce; - REGISTER_INI_ENTRIES(); - INIT_CLASS_ENTRY(ce, "JsonSerializable", json_serializable_interface); php_json_serializable_ce = zend_register_internal_interface(&ce); @@ -180,16 +153,6 @@ static PHP_GINIT_FUNCTION(json) } /* }}} */ -/* {{{ PHP_MSHUTDOWN_FUNCTION -*/ -static PHP_MSHUTDOWN_FUNCTION(json) -{ - UNREGISTER_INI_ENTRIES(); - - return SUCCESS; -} -/* }}} */ - /* {{{ json_module_entry */ @@ -198,7 +161,7 @@ zend_module_entry json_module_entry = { "json", json_functions, PHP_MINIT(json), - PHP_MSHUTDOWN(json), + NULL, NULL, NULL, PHP_MINFO(json), |