PHP7.1 json_encode() Float Issue

后端 未结 11 1053
既然无缘
既然无缘 2020-11-27 13:00

This isn\'t a question as it is more of a be aware. I updated an application that uses json_encode() to PHP7.1.1 and I was seeing an issue with floats being cha

11条回答
  •  青春惊慌失措
    2020-11-27 13:45

    As for me the problem was when JSON_NUMERIC_CHECK as second argument of json_encode () passed, which casting all numbers type to int (not only integer)

提交回复
热议问题