php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62930 Memory leak when using empty list()
Submitted: 2012-08-25 21:01 UTC Modified: 2012-08-26 05:06 UTC
From: felipe@php.net Assigned: laruence (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: master-Git-2012-08-25 (Git) OS:
Private report: No CVE-ID: None
 [2012-08-25 21:01 UTC] felipe@php.net
Description:
------------
See below.

Test script:
---------------
<?php

foreach ([1] as list()) {
}


Actual result:
--------------
[Sat Aug 25 17:55:53 2012]  Script:  '/home/felipe/dev/bug.php'
/home/felipe/dev/php-src/Zend/zend_vm_execute.h(5854) :  Freeing 0x7F611045A1F8 (32 bytes), script=/home/felipe/dev/bug.php
=== Total 1 memory leaks detected ===


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-25 21:04 UTC] felipe@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: laruence
 [2012-08-26 04:35 UTC] laruence@php.net
hmm, never test with such situation before, need sometime to dig. thanks
 [2012-08-26 05:06 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=5ebbdecfeaaea1bc78450a2bb6d5ee280bf18dbd
Log: Fixed bug #62930, and more tests
 [2012-08-26 05:06 UTC] laruence@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2012-08-26 05:06 UTC] laruence@php.net
-Status: Assigned +Status: Closed
 [2013-11-17 09:32 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=5ebbdecfeaaea1bc78450a2bb6d5ee280bf18dbd
Log: Fixed bug #62930, and more tests
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 04:01:27 2024 UTC