diff options
author | Xinchen Hui <laruence@php.net> | 2013-03-26 12:02:48 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2013-03-26 12:02:48 +0800 |
commit | ed315823019c8111847fb9a24293dc758ead7c3a (patch) | |
tree | 68428df3b199015885fc738975acbfb73a24bf9c /Zend/tests/bug64515.phpt | |
parent | 0496ad31acf067910c9d17117290d168617f845a (diff) | |
download | php-git-ed315823019c8111847fb9a24293dc758ead7c3a.tar.gz |
Fixed bug #64515 (Memoryleak when using the same variablename 2times in function declaration)
Diffstat (limited to 'Zend/tests/bug64515.phpt')
-rw-r--r-- | Zend/tests/bug64515.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/bug64515.phpt b/Zend/tests/bug64515.phpt new file mode 100644 index 0000000000..5390a6cdcd --- /dev/null +++ b/Zend/tests/bug64515.phpt @@ -0,0 +1,12 @@ +--TEST-- +Bug #64515 (Memoryleak when using the same variablename 2times in function declaration) +--FILE-- +<?php +function foo($unused = null, $unused = null, $arg = array()) { + return 1; +} +foo(); +echo "okey"; +?> +--EXPECT-- +okey |