Skip to content

Add deprecation notices to utf8_encode and utf8_decode #8726

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

Conversation

IMSoP
Copy link
Contributor

@IMSoP IMSoP commented Jun 7, 2022

@php php deleted a comment from rwema3 Jun 8, 2022
@IMSoP
Copy link
Contributor Author

IMSoP commented Jun 8, 2022

Actually, I've been lazy here: some of those tests aren't supposed to be testing the deprecated functions, so should be fixed rather than blessed. I'll have another look tomorrow.

Implements initial stage of accepted RFC to remove them:
https://wiki.php.net/rfc/remove_utf8_decode_and_utf8_encode

Tests relating to SOAP and htmlspecialchars seem to have been
using this entirely unnecessarily, so have been fixed.
@IMSoP IMSoP force-pushed the deprecate_utf8_decode_and_utf8_encode branch from 2b6ef67 to 0192b2e Compare June 8, 2022 21:16
@IMSoP
Copy link
Contributor Author

IMSoP commented Jun 8, 2022

Updated with some tests rewritten which were using the deprecated functions in exactly the nonsensical ways that made me want to deprecate them.

@adoy adoy added this to the PHP 8.2 milestone Jun 9, 2022
@kocsismate
Copy link
Member

Updated with some tests rewritten which were using the deprecated functions in exactly the nonsensical ways that made me want to deprecate them.

LGTM! Can you please merge it and add the NEWS entry?

@cmb69
Copy link
Member

cmb69 commented Jun 12, 2022

Thank you!

@cmb69 cmb69 closed this in d9f3ca7 Jun 12, 2022
@TimWolla
Copy link
Member

The status in the RFC should be updated. It still reads "Pending implementation" (and is also listed in the "Accepted" section on the RFC list).

@cmb69
Copy link
Member

cmb69 commented Jun 21, 2022

I've updated and moved the RFC just now.

@IMSoP
Copy link
Contributor Author

IMSoP commented Jun 21, 2022

Oh, thank you both!

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.

5 participants