Skip to content

Conversation

@y-l-g
Copy link
Contributor

@y-l-g y-l-g commented Jan 6, 2026

This PR fixes a segmentation fault when using frankenphp.RegisterExtension with more than one extension.
The issue was a type mismatch between Go and C: Go passes a slice of pointers, but the C code was treating it as a contiguous array of structs. This caused invalid memory access when iterating past the first element.
I created a minimal reproduction repo here: https://github.com/y-l-g/frankenphp-extensions-segfault-repro

@dunglas dunglas merged commit 11160fb into php:main Jan 7, 2026
82 of 84 checks passed
@dunglas
Copy link
Member

dunglas commented Jan 7, 2026

Thanks!

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