php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73950 memory leaks detected
Submitted: 2017-01-16 16:23 UTC Modified: 2017-01-16 16:27 UTC
From: shan dot liu at msn dot com Assigned:
Status: Duplicate Package: MySQLi related
PHP Version: 7.1.0 OS:
Private report: No CVE-ID: None
 [2017-01-16 16:23 UTC] shan dot liu at msn dot com
Description:
------------
[Tue Jan 17 00:15:57 2017]  Script:  '/home/lonely/workspace/ldb/dome/t.php'
/opt/php7/src/Zend/zend_string.h(0) :  Freeing 0x7FA2B387B2C0 (32 bytes), script=/home/lonely/workspace/ldb/dome/t.php
=== Total 1 memory leaks detected ===

Test script:
---------------
<?php
class cc{ 
    function __construct($c=null){
    }   
};
$i=mysqli_connect("127.0.0.1",'root','110','test_db');
$res=mysqli_query($i,'select * from l_order limit 1');
$t=array('-');
while($db= mysqli_fetch_object($res,'cc',$t)){}




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-16 16:27 UTC] requinix@php.net
-Status: Open +Status: Duplicate
 [2017-01-16 16:27 UTC] requinix@php.net
#73949 submitted twice
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC