php-src/ext/standard/tests/strings/bug78003.phpt
Christoph M. Becker 69bab6e5a5 Fix #78003: strip_tags output change since PHP 7.3
A refactoring of the strip tags state machine[1] missed the special
treatment of `depth > 0` when a `>` is encountered in state 2 or 3.  We
re-add it for BC reasons.

[1] <http://git.php.net/?p=php-src.git;a=commit;h=5cf64742773ddbf9af69d962a4d12b567fcf0084>
2019-05-13 13:10:24 +02:00

17 lines
255 B
PHP

--TEST--
Bug #78003 (strip_tags output change since PHP 7.3)
--FILE--
<?php
var_dump(
strip_tags('<foo<>bar>'),
strip_tags('<foo<!>bar>'),
strip_tags('<foo<?>bar>')
);
?>
===DONE===
--EXPECT--
string(0) ""
string(0) ""
string(0) ""
===DONE===