mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
32 lines
307 B
PHP
32 lines
307 B
PHP
--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
|