mirror of
https://github.com/php/php-src.git
synced 2024-12-25 09:49:08 +08:00
32 lines
307 B
Plaintext
32 lines
307 B
Plaintext
|
--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
|