TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
541 B
25 lines
541 B
--TEST--
|
|
Bug #46578 (strip_tags() does not honor end-of-comment when it encounters a single quote)
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(strip_tags('<!-- testing I\'ve been to mars -->foobar'));
|
|
|
|
var_dump(strip_tags('<a alt="foobar">foo<!-- foo! --></a>bar'));
|
|
|
|
var_dump(strip_tags('<a alt="foobar"/>foo<?= foo! /* <!-- "cool" --> */ ?>bar'));
|
|
|
|
var_dump(strip_tags('< ax'));
|
|
|
|
var_dump(strip_tags('<! a>'));
|
|
|
|
var_dump(strip_tags('<? ax'));
|
|
|
|
?>
|
|
--EXPECT--
|
|
string(6) "foobar"
|
|
string(6) "foobar"
|
|
string(6) "foobar"
|
|
string(4) "< ax"
|
|
string(0) ""
|
|
string(0) ""
|
|
|