summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-10-13 14:14:50 +0200
committerPeter Kokot <peterkokot@gmail.com>2018-10-13 14:14:50 +0200
commit902d39a3a79c6efe93c8879575fdd5a759cf03de (patch)
treee6ec0af8ac4333de34f581c2c7b5a2eb93e635a1 /ext/mbstring/php_mbregex.c
parent581f0141b6dd8d20e71612f90b01507ed0783db8 (diff)
downloadphp-git-902d39a3a79c6efe93c8879575fdd5a759cf03de.tar.gz
Trim trailing whitespace in source code files
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r--ext/mbstring/php_mbregex.c2
1 files changed, 1 insertions, 1 deletions
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;