Skip to content
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

Fix str_split('') logic to keep same as PHP before 8.2 on PHP 8.2 #143

Merged
merged 1 commit into from
Nov 22, 2022

Conversation

glensc
Copy link
Contributor

@glensc glensc commented Nov 15, 2022

Reference:
-  https://php.watch/versions/8.2/str_split-empty-string-empty-array

Fixes:
- Shardj/zf1-future#276

Signed-off-by: Elan Ruusamäe <glen@pld-linux.org>
Co-authored-by: Elan Ruusamäe <glen@pld-linux.org>
@falkenhawk
Copy link
Member

Thanks! We will look into it after #141 and #145

@glensc
Copy link
Contributor Author

glensc commented Nov 22, 2022

Unrelated to #141 and #145 both

@partikus
Copy link
Contributor

partikus commented Nov 22, 2022

@falkenhawk IMHO looks fine. It can be merged even for php 8.1 support.

https://3v4l.org/mHMvb

@falkenhawk falkenhawk merged commit edd43e8 into zf1s:master Nov 22, 2022
@glensc glensc deleted the 275-276-only branch November 22, 2022 14:14
@falkenhawk falkenhawk mentioned this pull request Dec 12, 2022
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.

4 participants