mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
a87ef5e3dd
When the strip tags state machine has been flattened, an if statement has mistakenly been treated as else if. We fix this, and also simplify a bit right away.
10 lines
170 B
PHP
10 lines
170 B
PHP
--TEST--
|
|
Bug #78346 (strip_tags no longer handling nested php tags)
|
|
--FILE--
|
|
<?php
|
|
$str = '<?= \'<?= 1 ?>\' ?>2';
|
|
var_dump(strip_tags($str));
|
|
?>
|
|
--EXPECT--
|
|
string(1) "2"
|