Skip to content

strpos: document that an empty needle matches at every position and returns the offset - #5856

Merged
lacatoire merged 1 commit into
php:masterfrom
lacatoire:fix/strpos-empty-needle-4783
Sep 10, 2026
Merged

strpos: document that an empty needle matches at every position and returns the offset#5856
lacatoire merged 1 commit into
php:masterfrom
lacatoire:fix/strpos-empty-needle-4783

Conversation

@lacatoire

Copy link
Copy Markdown
Member

@lacatoire
lacatoire merged commit dd5db7c into php:master Sep 10, 2026
3 checks passed
@lacatoire
lacatoire deleted the fix/strpos-empty-needle-4783 branch September 10, 2026 14:54
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.

Passing empty string to needle arg always returns 0

1 participant