xref: /PHP-7.4/Zend/tests/bug53629.phpt (revision 3f5ad237)
1--TEST--
2Bug #53629 (memory leak inside highlight_string())
3--FILE--
4<?php
5
6$str = '
7<?php
8class foo {
9    public $bar = <<<EOT
10bar
11    EOT;
12}
13?>
14';
15$str2 = '
16<?php
17var_dump(array(<<<EOD
18foobar!
19EOD
20));
21?>
22';
23
24highlight_string($str, true);
25highlight_string($str2, true);
26
27
28echo "Done\n";
29?>
30--EXPECT--
31Done
32