Skip to content

Unify types of PHP_VERSION and friends on Windows #16247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Oct 5, 2024

For phpize builds, all three version variables are numbers, but for buildconf builds, all are strings. This can yield surprising results when extensions create their PHP_VERSION_ID like

10000 * PHP_VERSION + 100 * PHP_MINOR_VERSION + PHP_RELEASE_VERSION

Since phpize builds are way more common for external extensions nowadays, we change the types for buildconf builds.

For `phpize` builds, all three version variables are numbers, but for
`buildconf` builds, all are strings.  This can yield surprising results
when extensions create their `PHP_VERSION_ID` like

10000 * PHP_VERSION + 100 * PHP_MINOR_VERSION + PHP_RELEASE_VERSION

Since `phpize` builds are way more common for external extensions
nowadays, we change the types for `buildconf` builds.
@Girgias
Copy link
Member

Girgias commented Oct 5, 2024

Makes sense to me

@cmb69
Copy link
Member Author

cmb69 commented Oct 5, 2024

The LINUX_X64_DEBUG_ZTS_ASAN failure is unrelated to this PR (see PR #16250).

@cmb69 cmb69 closed this in a74eb24 Oct 7, 2024
@cmb69 cmb69 deleted the cmb/php-version-numbers branch October 7, 2024 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants