Skip to content

Fix GH-19197: session build fails on system with memcpy as macro. - #19198

Merged
devnexen merged 1 commit into
php:masterfrom
devnexen:gh19197
Jul 21, 2025
Merged

devnexen merged 1 commit into
php:masterfrom
devnexen:gh19197

Conversation

@devnexen

Copy link
Copy Markdown
Member

Thus ZEND_STRL macro does not expand as expected so going back to not using it like lower branches.

Thus ZEND_STRL macro does not expand as expected so going back
to not using it like lower branches.
@devnexen
devnexen requested a review from Girgias as a code owner July 21, 2025 08:10
@devnexen devnexen linked an issue Jul 21, 2025 that may be closed by this pull request

@ndossche ndossche left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

TIL memcpy can be implemented as a macro

@devnexen
devnexen merged commit bd886d2 into php:master Jul 21, 2025
@devnexen
devnexen deleted the gh19197 branch July 21, 2025 09:19
@Girgias

Girgias commented Jul 21, 2025

Copy link
Copy Markdown
Member

TIL memcpy can be implemented as a macro

Same, might need to check all usages of ZEND_STRL just to make sure it isn't in a memcpy

@devnexen

devnexen commented Jul 21, 2025 •

Copy link
Copy Markdown
Member Author

TIL memcpy can be implemented as a macro

Same, might need to check all usages of ZEND_STRL just to make sure it isn't in a memcpy

I do not think there is any left, nor do I know if any libc/os implements strncmp as macro but in case you might roll back this one if you wish.

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.

php-8.5.0alpha2 build failure in ext/session/session.c

3 participants