Provide backup utf8 sanitizer when UConverter is unavailable
commit714a153cb34219ae63fc66741d4141054c53ad20
authorSara Golemon <sgolemon@fb.com>
Tue, 29 Jul 2014 22:02:27 +0000 (29 15:02 -0700)
committerfacebook-github-bot <githubbot@fb.com>
Tue, 29 Jul 2014 22:30:17 +0000 (29 15:30 -0700)
tree7cad3128a8b40abc2c1f09cf5bd4f4b48bf3301e
parent4f5b7e349e675b78dade0e45024ea696d693d026
Provide backup utf8 sanitizer when UConverter is unavailable

Summary: UConverter is PHP >= 5.5, which folks may not have
Provide a basic UTF-8 validator implementation to passthrough
valid sequences and transform all others to
U+FFFD REPLACEMENT CHARACTER

Closes #3307

Reviewed By: @LiraNuna

Differential Revision: D1465029
hphp/test/run