Skip to content

ext/*: Remove break after return#21485

Open
LamentXU123 wants to merge 6 commits intophp:masterfrom
LamentXU123:fix-unreachable-break
Open

ext/*: Remove break after return#21485
LamentXU123 wants to merge 6 commits intophp:masterfrom
LamentXU123:fix-unreachable-break

Conversation

@LamentXU123
Copy link
Contributor

@LamentXU123 LamentXU123 commented Mar 21, 2026

After looking at #21481 and #21482 I run a script to search and delete all the occurrence in /ext

Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

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

This is touching bundled libraries (e.g. uriparser).

@LamentXU123 LamentXU123 requested a review from TimWolla March 21, 2026 16:37
@iluuu1994
Copy link
Member

ext/gd/libgd needs to be reverted still.

@LamentXU123 LamentXU123 force-pushed the fix-unreachable-break branch from 5af1a80 to b3bd5bf Compare March 21, 2026 17:01
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

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

gd, pcntl, sockets ... I m all to finish once and for all with this "topic" anyway :)

@ndossche ndossche removed their request for review March 21, 2026 22:00
Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

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

Looks correct. Code churn, so I'll let other people decide whether this should be merged. If so, please do.

Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

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

Happy with this kind of stuff being done in bulk across the entire code base.

@TimWolla TimWolla changed the title Fix unreachable break ext/*: Remove break after return Mar 22, 2026
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.

4 participants