summaryrefslogtreecommitdiff
path: root/Zend/tests/bug53629.phpt
blob: 4b46b9f104105baa9397be33a3e0b301e9b0d7c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--TEST--
Bug #53629 (memory leak inside highlight_string())
--FILE--
<?php

$str = '
<?php
class foo {
    public $bar = <<<EOT
bar
    EOT;
}
?>
';
$str2 = '
<?php
var_dump(array(<<<EOD
foobar!
EOD
));
?>
';

highlight_string($str, true);
highlight_string($str2, true);


echo "Done\n";
?>
--EXPECT--
Done