Skip to content

Document the changes to substr functions #4843

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

colinodell
Copy link
Contributor

@colinodell colinodell commented Oct 22, 2019

This PR documents the changes from #4840 in UPGRADING.

My apologies for not including these notes in that previous PR.

UPGRADING Outdated
@@ -271,6 +271,10 @@ PHP 8.0 UPGRADE NOTES
point. An explicit call to chr() can be used to restore the previous
behavior.
. The needle argument for strpos(), strrpos(), stripos(), strripos(), strstr() and stristr() can now be empty.
. The length argument for substr(), substr_count(), substr_compare(), and
iconv_substr() can now be null. Null values will be behave as if no length
Copy link
Member

Choose a reason for hiding this comment

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

I believe the 2nd be is a typo here!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! This has been fixed.

@colinodell colinodell force-pushed the document-substr-changes branch from 1702fc8 to 2b87e5d Compare October 22, 2019 14:49
@nikic
Copy link
Member

nikic commented Oct 23, 2019

Merged as part of #4844.

@nikic nikic closed this Oct 23, 2019
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.

3 participants