xref: /php-src/Zend/tests/bug36513.phpt (revision 9c144e0d)
1--TEST--
2Bug #36513 (comment will be outputed in last line)
3--FILE--
4<?php
5function test($s) {
6  echo "'".trim(str_replace("&nbsp;", " ", htmlspecialchars_decode(strip_tags(highlight_string($s,1)))))."'\n";
7}
8
9eval('echo "1";//2');
10eval('echo 3; //{ 4?>5');
11echo "\n";
12
13//test('<?php echo "1";//');
14test('<?php echo "1";//2');
15test('<?php echo "1";//22');
16test('<?php echo 3; // 4 ?>5');
17?>
18--EXPECT--
19135
20'<?php echo "1";//2'
21'<?php echo "1";//22'
22'<?php echo 3; // 4 ?>5'
23