diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2011-01-03 14:39:48 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2011-01-03 14:39:48 +0000 |
commit | 7a2157cf371ef8dd9f0d8815a4523e35a36c2516 (patch) | |
tree | 07022b97e66de46c3c3f47fa280d5ba8118e3387 /Zend/tests/bug53629.phpt | |
parent | 0df43f2803ad9bb92b2768ac2751250896ffee82 (diff) | |
download | php-git-7a2157cf371ef8dd9f0d8815a4523e35a36c2516.tar.gz |
Fixed Bug #53629 (memory leak inside highlight_string()).
Diffstat (limited to 'Zend/tests/bug53629.phpt')
-rw-r--r-- | Zend/tests/bug53629.phpt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Zend/tests/bug53629.phpt b/Zend/tests/bug53629.phpt new file mode 100644 index 0000000000..4b46b9f104 --- /dev/null +++ b/Zend/tests/bug53629.phpt @@ -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 |