1--TEST--
2Bug #46578 (strip_tags() does not honor end-of-comment when it encounters a single quote)
3--FILE--
4<?php
5
6var_dump(strip_tags('<!-- testing I\'ve been to mars -->foobar'));
7
8var_dump(strip_tags('<a alt="foobar">foo<!-- foo! --></a>bar'));
9
10var_dump(strip_tags('<a alt="foobar"/>foo<?= foo! /* <!-- "cool" --> */ ?>bar'));
11
12var_dump(strip_tags('< ax'));
13
14var_dump(strip_tags('<! a>'));
15
16var_dump(strip_tags('<? ax'));
17
18?>
19--EXPECT--
20string(6) "foobar"
21string(6) "foobar"
22string(6) "foobar"
23string(4) "< ax"
24string(0) ""
25string(0) ""
26