mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
69bab6e5a5
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>
17 lines
255 B
PHP
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===
|