From 902d39a3a79c6efe93c8879575fdd5a759cf03de Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sat, 13 Oct 2018 14:14:50 +0200 Subject: Trim trailing whitespace in source code files --- ext/mbstring/php_mbregex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/mbstring/php_mbregex.c') diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index eecd8c2471..2ff304f277 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -1447,7 +1447,7 @@ PHP_FUNCTION(mb_ereg_search_setpos) if ((position < 0) && (!Z_ISUNDEF(MBREX(search_str))) && (Z_TYPE(MBREX(search_str)) == IS_STRING)) { position += Z_STRLEN(MBREX(search_str)); } - + if (position < 0 || (!Z_ISUNDEF(MBREX(search_str)) && Z_TYPE(MBREX(search_str)) == IS_STRING && (size_t)position > Z_STRLEN(MBREX(search_str)))) { php_error_docref(NULL, E_WARNING, "Position is out of range"); MBREX(search_pos) = 0; -- cgit v1.2.1