diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2017-08-03 22:32:31 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-08-03 22:36:42 +0200 |
commit | e53162a32b011ef22c3e0210e7af334d968f227c (patch) | |
tree | dc3ba9d40d9fbcb8322c4876d49498b8262e2c5d /ext/standard/php_fopen_wrapper.c | |
parent | 41e9ba6333ab58c9fe3eb8bd413cc3e0eca87be1 (diff) | |
download | php-git-e53162a32b011ef22c3e0210e7af334d968f227c.tar.gz |
Return false on invalid codepoint in mb_chr()
Instead of returning the encoding of the current substitution
character. This allows a robust check for the failure case. The
substitution character (especially the default of "?") is also
a valid output of mb_chr() for a valid input (for "?" that would be
0x3f), so it's a bad choice for an error value.
Diffstat (limited to 'ext/standard/php_fopen_wrapper.c')
0 files changed, 0 insertions, 0 deletions