Skip to content

Commit

Permalink
Fixed Bug #53629 (memory leak inside highlight_string()).
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Alshanetsky committed Jan 3, 2011
1 parent 0df43f2 commit 7a2157c
Show file tree
Hide file tree
Showing 4 changed files with 397 additions and 354 deletions.
31 changes: 31 additions & 0 deletions Zend/tests/bug53629.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
Loading

0 comments on commit 7a2157c

Please sign in to comment.