Skip to content

ext/standard: Make str_ends_with frameless - #23510

Merged
LamentXU123 merged 1 commit into
php:masterfrom
LamentXU123:opt---
Aug 30, 2026
Merged

ext/standard: Make str_ends_with frameless#23510
LamentXU123 merged 1 commit into
php:masterfrom
LamentXU123:opt---

Conversation

@LamentXU123

Copy link
Copy Markdown
Member

Since str_starts_with is frameless, str_ends_with also should be frameless.

/** @compile-time-eval */
/**
* @compile-time-eval
* @frameless-function {"arity": 2}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Any reason why not all "compile-time-eval" functions are not frameless?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah Perhaps a good idea for me to look into later. At least some of them should be frameless. e.g. ltrim rtrim.

@LamentXU123
LamentXU123 merged commit 027a5f8 into php:master Aug 30, 2026
33 of 34 checks passed
@LamentXU123
LamentXU123 deleted the opt--- branch August 30, 2026 16:20
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.

3 participants