forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Bug #53629 (memory leak inside highlight_string()).
- Loading branch information
Ilia Alshanetsky
committed
Jan 3, 2011
1 parent
0df43f2
commit 7a2157c
Showing
4 changed files
with
397 additions
and
354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.