Re: com php-src: Fixed bug #64515 (Memoryleak when using the same variablename 2times in function declaration): NEWS Zend/tests/bug64515.phpt
Zend/zend_vm_def.h Zend/zend_vm_execute.h
| From: | Hannes Magnusson | Date: | Tue, 26 Mar 2013 03:48:32 +0000 |
| Subject: | Re: com php-src: Fixed bug #64515 (Memoryleak when using the same variablename 2times in function declaration): NEWS Zend/tests/bug64515.phpt Zend/zend_vm_def.h Zend/zend_vm_execute.h |
||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-71749@lists.php.net to get a copy of this message | ||
On Mon, Mar 25, 2013 at 8:44 PM, Xinchen Hui <laruence@php.net> wrote:
> Commit: 5e9377ebd57f419de7b421878df540795ace01ef
> Author: Xinchen Hui <laruence@php.net> Tue, 26 Mar 2013 11:44:57 +0800
> Parents: e9f996c00d5cb6448dac1457dd9dae320c16904f
> Branches: PHP-5.4
>
> Link:
> http://git.php.net/?p=php-src.git;a=commitdiff;h=5e9377ebd57f419de7b421878df540795ace01ef
>
> Log:
> Fixed bug #64515 (Memoryleak when using the same variablename 2times in function declaration)
>
> Bugs:
> https://bugs.php.net/64515
>
> Changed paths:
> M NEWS
> A Zend/tests/bug64515.phpt
> M Zend/zend_vm_def.h
> M Zend/zend_vm_execute.h
>
>
> Diff:
> diff --git a/NEWS b/NEWS
> index c14ea1c..010b8f1 100644
> --- a/NEWS
> +++ b/NEWS
> @@ -2,6 +2,8 @@ PHP NEWS
> |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> ?? ??? 2013, PHP 5.4.14
> - Core
> + . Fixed bug #64515 (Memoryleak when using the same variablename 2times in
> + function declaration). (Laruence)
> . Fixed bug #64432 (more empty delimiter warning in strX methods). (Laruence)
> . Fixed bug #64417 (ArrayAccess::&offsetGet() in a trait causes fatal error).
> (Dmitry)
> diff --git a/Zend/tests/bug64515.phpt b/Zend/tests/bug64515.phpt
> new file mode 100644
> index 0000000..d056c74
> --- /dev/null
> +++ b/Zend/tests/bug64515.phpt
> @@ -0,0 +1,10 @@
> +--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();
> +?>
> +--EXPECT--
Please include a ==DONE== section or something, otherwise this test
won't fail even if it segfaults.
-Hannes