summaryrefslogtreecommitdiff
path: root/ext/mbstring/mbstring.c
diff options
context:
space:
mode:
authorGeorge Peter Banyard <girgias@php.net>2020-04-07 22:27:00 +0200
committerGeorge Peter Banyard <girgias@php.net>2020-04-07 22:27:00 +0200
commit9b98cf32098838289f197c1bdd07865ed0c5be6f (patch)
tree65629d28619427d50ebd1047253f744bb93430c0 /ext/mbstring/mbstring.c
parent13c9572a792bd3dc92f95ffd9569b460e788114d (diff)
parenta0df5f3b542abfd1078ac04e9a2081a1f71e3b11 (diff)
downloadphp-git-9b98cf32098838289f197c1bdd07865ed0c5be6f.tar.gz
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Revert "Went to fast and forgot to update tests" Revert "Fix Bug #79448 0 is a valid Unicode codepoint, but mb_substitute_character(0) fails"
Diffstat (limited to 'ext/mbstring/mbstring.c')
-rw-r--r--ext/mbstring/mbstring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c
index 0fc0eca638..489299726d 100644
--- a/ext/mbstring/mbstring.c
+++ b/ext/mbstring/mbstring.c
@@ -2042,7 +2042,7 @@ PHP_FUNCTION(mb_detect_order)
static inline int php_mb_check_code_point(zend_long cp)
{
- if (cp < 0 || cp >= 0x110000) {
+ if (cp <= 0 || cp >= 0x110000) {
/* Out of Unicode range */
return 0;
}