]> granicus.if.org Git - php/commit
Fix #78003: strip_tags output change since PHP 7.3
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 13 May 2019 11:10:24 +0000 (13:10 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 13 May 2019 11:10:24 +0000 (13:10 +0200)
commit69bab6e5a5c8afba684b5fbde6e005a47408d01e
treea11f048e473e11bb44b7fa45c6fffd8abafab677
parentbec68d59a2ada17768d47c708eda52adc491e615
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>
NEWS
ext/standard/string.c
ext/standard/tests/strings/bug78003.phpt [new file with mode: 0644]