Update serialize_precision default value

Local currently sets the value of serialize_precision in php.ini.hbs to be 17. This was causing some floating point precision errors in my WordPress REST API, when running on Local.

Starting from PHP 7.1.0, the default value is now -1. Manually changing this value in my php.ini.hbs to -1 fixed the issue I was encountering.

I think Local should update this value to be -1 by default.

Source: PHP: Description of core php.ini directives - Manual

Thank you for raising this @groenroos! I’ve shared it with our Local Devs who have a cut a ticket to get this adjusted. No ETA to provide at this time but we’ll be sure to update you with any changes.

1 Like