Fixed bug #50224 where float without decimals were converted to integer

This commit is contained in:
Juan Basso 2014-03-29 19:41:48 -04:00 committed by Stanislav Malyshev
parent 6de149e47c
commit ac7cfad3b5
5 changed files with 97 additions and 8 deletions

View file

@ -65,6 +65,7 @@ extern PHP_JSON_API zend_class_entry *php_json_serializable_ce;
#define PHP_JSON_PRETTY_PRINT (1<<7)
#define PHP_JSON_UNESCAPED_UNICODE (1<<8)
#define PHP_JSON_PARTIAL_OUTPUT_ON_ERROR (1<<9)
#define PHP_JSON_PRESERVE_ZERO_FRACTION (1<<10)
/* Internal flags */
#define PHP_JSON_OUTPUT_ARRAY 0