Skip to content

Conversation

@IonBazan
Copy link
Contributor

@IonBazan IonBazan commented Nov 2, 2022

This change skips comparing PHP_FLOAT_MIN and PHP_FLOAT_MAX constants on PHP 7.3 and higher as they changed their values. The test will only be run on PHP 7.1 (using provided polyfill) and PHP 7.2 (using native PHP values).

These constants depend on DBL_MIN and DBL_MAX which might change depending on the platform and/or compiler. I believe the values have changed in PHP 7.3 due to gcc update or some other time-related factor.

@nicolas-grekas
Copy link
Member

Thank you @IonBazan.

@nicolas-grekas nicolas-grekas merged commit 4475c7a into symfony:main Nov 3, 2022
nicolas-grekas added a commit that referenced this pull request Nov 3, 2022
This PR was merged into the 1.26-dev branch.

Discussion
----------

PHP 8.3: json_validate polyfill

This PR adds `json_validate()` polyfill - see: https://wiki.php.net/rfc/json_validate.
Tests examples were taken from the php-src implementation.

Test failures are unrelated.
Float tests are fixed in #417, remaining PHP 8.2 mbstring test can be sorted out separately.

Commits
-------

64c9121 Add json_validate polyfill
@IonBazan IonBazan deleted the tests/float-php72 branch November 3, 2022 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants