php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67858 Leak when $php_errormsg already set
Submitted: 2014-08-18 16:10 UTC Modified: -
From: nikic@php.net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: master-Git-2014-08-18 (Git) OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nikic@php.net
New email:
PHP Version: OS:

 

 [2014-08-18 16:10 UTC] nikic@php.net
Description:
------------
<?php ini_set('track_errors', 1); error_reporting(E_ALL);

function f() {
    $php_errormsg = [1, 2, 3];
    echo $var;
    var_dump($php_errormsg);
}
f();

Leaks the array


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-08-18 16:14 UTC] nikic@php.net
Automatic comment on behalf of nikic
Revision: http://git.php.net/?p=php-src.git;a=commit;h=26a9dc3e04813a76bf59ffb5bf9df47f6034008b
Log: Fix bug #67858: Leak when $php_errormsg already set
 [2014-08-18 16:14 UTC] nikic@php.net
-Status: Open +Status: Closed
 [2016-07-20 11:40 UTC] davey@php.net
Automatic comment on behalf of nikic
Revision: http://git.php.net/?p=php-src.git;a=commit;h=26a9dc3e04813a76bf59ffb5bf9df47f6034008b
Log: Fix bug #67858: Leak when $php_errormsg already set
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Jan 25 15:01:23 2021 UTC