Skip to content

Add HAVE_MEMMOVE to ext/pcre #18862

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

Merged
merged 1 commit into from
Jun 19, 2025
Merged

Add HAVE_MEMMOVE to ext/pcre #18862

merged 1 commit into from
Jun 19, 2025

Conversation

petk
Copy link
Member

@petk petk commented Jun 16, 2025

The pcre2 library still needs HAVE_MEMMOVE defined to use the system (C99 standard) memmove() function, otherwise emulation is used. On Windows, this is already enabled.

I think emulation sounds worse than using system in this case, so probably should be added. But someone who understands this better should confirm.

The pcre2 library still needs HAVE_MEMMOVE defined to use the system
(C99 standard) memmove() function, otherwise emulation is used. On
Windows, this is already enabled.
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mstm

@devnexen devnexen requested a review from nielsdos June 18, 2025 21:11
@petk
Copy link
Member Author

petk commented Jun 19, 2025

To understand this a bit better: Here otherwise, there already was HAVE_MEMMOVE added in PHP-8.4. In PHP-8.3 it is added via php_config.h. And it was then removed in PHP-8.4 because of a bad merge commit for some feature request of those -Wno... flags check... I have no idea how I missed that and why it didn't get added at the merge.

@petk petk merged commit be70f42 into php:master Jun 19, 2025
9 checks passed
@petk petk deleted the patch-HAVE_MEMMOVE branch June 19, 2025 19:49
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.

3 participants