diff options
author | Jakub Zelenka <bukka@php.net> | 2016-06-26 14:03:01 +0100 |
---|---|---|
committer | Jakub Zelenka <bukka@php.net> | 2016-06-26 14:03:01 +0100 |
commit | 3f13507dd281adf0518c9162dce5391e9250e93b (patch) | |
tree | 70f4addc37de995e1a58e5baec180e0ef266a937 /ext/json/json.c | |
parent | 158b537c99ca5fc7846e7d16d532644be95894a7 (diff) | |
download | php-git-3f13507dd281adf0518c9162dce5391e9250e93b.tar.gz |
Use one place to define max length of double
Introduce new constant PHP_DOUBLE_MAX_LENGTH for that purpose
Diffstat (limited to 'ext/json/json.c')
-rw-r--r-- | ext/json/json.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/ext/json/json.c b/ext/json/json.c index d3c6111d4d..8bb5e51d41 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -33,14 +33,6 @@ #include "php_json_parser.h" #include <zend_exceptions.h> -#include <float.h> -#if defined(DBL_MANT_DIG) && defined(DBL_MIN_EXP) -#define NUM_BUF_SIZE (3 + DBL_MANT_DIG - DBL_MIN_EXP) -#else -#define NUM_BUF_SIZE 1080 -#endif - - static PHP_MINFO_FUNCTION(json); static PHP_FUNCTION(json_encode); static PHP_FUNCTION(json_decode); |