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

Request #65081 - implemeting mb_scrub #1099

Closed
wants to merge 4 commits into from
Closed

Request #65081 - implemeting mb_scrub #1099

wants to merge 4 commits into from

Conversation

masakielastic
Copy link
Contributor

This pull request introduces mb_scrub which replace ill-formed byte sequence with subsitute character.

var_dump(
    "?" === mb_scrub("\x80")
);

@jpauli jpauli added the Feature label Feb 20, 2015
@php-pulls
Copy link

Comment on behalf of yohgaki at php.net:

Merged. Thank you for PR!

@php-pulls php-pulls closed this Aug 10, 2016
fabpot added a commit to symfony/polyfill that referenced this pull request Aug 30, 2016
…grekas)

This PR was merged into the 1.2-dev branch.

Discussion
----------

Polyfills for mb_chr(), mb_ord() and mb_scrub()

As implemented in upcoming php 7.2, see:
- php/php-src#1099
- php/php-src#1100

Commits
-------

624adfc Polyfills for mb_chr(), mb_ord() and mb_scrub()
symfony-splitter pushed a commit to symfony/polyfill-mbstring that referenced this pull request Aug 30, 2016
…grekas)

This PR was merged into the 1.2-dev branch.

Discussion
----------

Polyfills for mb_chr(), mb_ord() and mb_scrub()

As implemented in upcoming php 7.2, see:
- php/php-src#1099
- php/php-src#1100

Commits
-------

624adfc Polyfills for mb_chr(), mb_ord() and mb_scrub()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants