Skip to content

Fix bug #76392 - #3349

Closed
petk wants to merge 1 commit into
php:masterfrom
petk:patch-76392
Closed

petk wants to merge 1 commit into
php:masterfrom
petk:patch-76392

Conversation

@petk

@petk petk commented Jun 28, 2018

Copy link
Copy Markdown
Member

On systems such as Alpine, Musl libc doesn't provide function attributes. Compiler (GCC) provides them, but the runtime afterwards doesn't. This additional check fixes bug #76392.

@nikic

nikic commented Jun 29, 2018

Copy link
Copy Markdown
Member

@remicollet Can you review this?

@nikic

nikic commented Jun 29, 2018

Copy link
Copy Markdown
Member

Looking at https://patchwork.ozlabs.org/patch/774679/ we might want to exclude uclibc and android as well.

On systems without glibc, such as Alpine with Musl libc, the function attributes
are not supported. GCC 6 doesn't properly omit some systems. This is
already fixed in GCC 7 but for systems with GCC 6 and ones without
glibc, this additional check fixes this bug.
@petk

petk commented Jul 3, 2018

Copy link
Copy Markdown
Member Author

Also added uclibc and android systems with similar check as GCC 7 has it:

Case is that on GCC 7 it will already work ok, but for GCC 6 won't for musl based systems:

So, adding android and uclibc, shouldn't cause issues in this patch.

@nikic

nikic commented Jul 7, 2018

Copy link
Copy Markdown
Member

Merged as 67352cb, thanks!

@nikic nikic closed this Jul 7, 2018
@petk
petk deleted the patch-76392 branch July 7, 2018 09:56
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