php-src/ext/standard/tests/strings/bug78346.phpt
Christoph M. Becker a87ef5e3dd Fix #78346: strip_tags no longer handling nested php tags
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.
2019-08-02 17:03:20 +02:00

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"