HomePhabricator

Implement phutil_is_utf8_with_only_bmp_characters() without segfaulting

Description

Implement phutil_is_utf8_with_only_bmp_characters() without segfaulting

Summary: See comments. The regexp based implementation segfaults unpreventably on small inputs. Do it nice and slow in PHP instead.

Test Plan: Ran unit tests.

Reviewers: btrahan, arice

Reviewed By: arice

CC: chad, arice, aran

Differential Revision: https://secure.phabricator.com/D8312

Details

Provenance
epriestleyAuthored on
epriestleyPushed on Feb 24 2014, 12:19 AM
Reviewer
arice
Differential Revision
D8312: Implement phutil_is_utf8_with_only_bmp_characters() without segfaulting
Parents
rPHU0879582275a5: Add phutil_is_utf8_with_only_bmp_characters()
Branches
Unknown
Tags
Unknown

Event Timeline