Skip to content

Conversation

@Girgias
Copy link
Member

@Girgias Girgias commented Dec 26, 2025

Commits should be reviewed in order.

This is an initial PR to refactor our email sending code as a lot of unnecessary strlen() recomputations are happening.

@Girgias Girgias force-pushed the win-mail-refactor branch 3 times, most recently from f9a22c9 to 7392fa0 Compare December 26, 2025 01:36
@Girgias Girgias requested a review from ndossche December 26, 2025 02:10
@Girgias Girgias marked this pull request as ready for review December 26, 2025 02:10
@Girgias Girgias requested a review from bukka as a code owner December 26, 2025 02:10
@Girgias Girgias requested a review from ndossche December 26, 2025 18:45
@Girgias
Copy link
Member Author

Girgias commented Dec 26, 2025

Done the code changes and renamed some commits.

Copy link
Member

@ndossche ndossche left a comment

Choose a reason for hiding this comment

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

Please squash the two separate commits into one that have the same title:

win32/sendmail.c: remove mailBbc parameter that is always NULL

…ters

This prevents some strlen() reconputations
It always returns 1 and thus a bunch of error handling code is useless
…eader computation

Removes some error handling and work if it fails
This prevents some copying and is in preparation of other refactoring preventing strlen() recomputations
Input as zend_string
Use smart_str to concatenate strings
Change return type to bool
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