[wp-trac] [WordPress Trac] #63175: Tests: Improve Unit tests for 'wp_unique_id_from_values()'
WordPress Trac
noreply at wordpress.org
Thu Mar 27 00:08:31 UTC 2025
#63175: Tests: Improve Unit tests for 'wp_unique_id_from_values()'
--------------------------------------+---------------------
Reporter: joemcgill | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.8
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: tests
--------------------------------------+---------------------
Comment (by siliconforks):
Replying to [comment:4 peterwilsoncc]:
> According to the Stack Overflow post
[https://stackoverflow.com/questions/28925559/json-encode-behaving-
differently-on-dev-vs-live-servers json_encode behaving differently on dev
vs live servers], the cause of the different results is due to different
MySQL extensions.
Are you sure it isn't just an issue with outputting floating-point
numbers? All the failing tests seem to have floating-point numbers.
If it's an issue with floating-point numbers, you might be able to get
more reproducible results by setting
[https://www.php.net/manual/en/ini.core.php serialize_precision]. (But
I'm not sure if even that will guarantee that floating-point output will
be exactly the same on all systems.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63175#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list