Skip to content

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented May 13, 2024

Some modules may reset _fmode, or some SAPIs may not set it at all. This causes mangling of line endings, resulting in a difference in size read vs file size. Always set the mode explicitly like we do in other places where the native open call is used.

@nielsdos nielsdos changed the title Fix GH-14208: Segmentation fault in php_request_startup with ZTS Fix GH-14215: Cannot use FFI::load on CRLF header file with apache2handler May 13, 2024
…2handler

Some modules may reset _fmode, which causes mangling of line endings.
Always be explicit like we do in other places where the native open call
is used.
@nielsdos
Copy link
Member Author

Initially I used the wrong commit title because I was looking at two issues at the same time, I fixed this now. Apologies.

@nielsdos nielsdos linked an issue May 13, 2024 that may be closed by this pull request
@nielsdos nielsdos closed this in ebd1a36 May 14, 2024
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.

Cannot use FFI::load on CRLF header file with apache2handler
2 participants