#40883 [Bgs->Csd]: mysql_query() is allocating memory incorrectly

From: Date: Fri, 23 Mar 2007 08:00:16 +0000
Subject: #40883 [Bgs->Csd]: mysql_query() is allocating memory incorrectly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-110709@lists.php.net to get a copy of this message
ID: 40883 Updated by: dmitry@php.net Reported By: edwin at aucs dot org -Status: Bogus +Status: Closed Bug Type: MySQL related Operating System: WinXP PHP Version: 5.2.1 -Assigned To: +Assigned To: dmitry New Comment: The problem was in Zend Memory Manager, that cached small memory blocks and didn't reuse cache on erealloc(). Fixed in CVS HEAD and PHP_5_2. Previous Comments: ------------------------------------------------------------------------ [2007-03-21 16:26:25] tony2001@php.net The engine caches small memory blocks. ------------------------------------------------------------------------ [2007-03-21 16:13:57] edwin at aucs dot org Description: ------------ Memory leak in mysql_query, memory not being able to be freed by mysql_free_result properly Reproduce code: --------------- Refer to Listing 4 to 7 of http://www-128.ibm.com/developerworks/opensource/library/os-php-v521/ Expected result: ---------------- No memory leakage Actual result: -------------- mysql_query() is allocating memory incorrectly, even with the latest CVS snap ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40883&edit=1

« previous php.bugs (#110709) next »