Request #65081 - implemeting mb_scrub by masakielastic · Pull Request #1099 · php/php-src (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

masakielastic

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

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

@masakielastic

@masakielastic

@masakielastic

@masakielastic

@php-pulls

Comment on behalf of yohgaki at php.net:

Merged. Thank you for PR!

fabpot added a commit to symfony/polyfill that referenced this pull request

Aug 30, 2016

@fabpot

…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:

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

@fabpot

…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:

Commits

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

@jrfnl jrfnl mentioned this pull request

Oct 25, 2017