diff --git a/ext/standard/string.c b/ext/standard/string.c index bcfc3b61812..d5f83e7d0f4 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -4822,7 +4822,7 @@ PHPAPI size_t php_strip_tags_ex(char *rbuf, int len, int *stateptr, char *allow, * state == 2 (PHP). Switch back to HTML. */ - if (state == 2 && p > buf+2 && strncasecmp(p-4, " buf+4 && strncasecmp(p-4, "