From: ysuzuki at zend dot co dot jp Operating system: RedHat Linux PHP version: 4.4.2 PHP Bug Type: Informix related Bug description: HTTP memory increased
Description: ------------ Our developers created a sample code by using the following functions. --- ifx_connect(), ifx_query(), ifx_free_result(), ifx_close() This sample program is very simple such as connect to Infomix DB and then issue some query string, get query result, and finally disconnect Informix DB. They executed this sample php code several times. Then, they found a problem that HTTPD used memory was increased. This is kind of memory leak problem. They also investigated php_initfx_count_descriptors() function. static php_initfx_count_descriptors(char *p_statemid TSRMLS_DC) { EXEC SQL BEGIN DECLARE SECTION; char *statemid = p_statemid; EXEC SQL END DECLARE SECTION; struct sqlda *s_da; int ret = 384; EXEC SQL DESCRIBE :statemid INTO s_da; If(ifx_check()) >= 0) { ret = s_da->sqlid; /* *Thanks to DBD-Informix */ #if (ESQLC_VERSION >= 720 || (ESQLC_VERSION >= 501 && ESQLC_VERSION < 600)) SqlFreeMem(s_da, SQLDA_FREE); } else { free(s_da); #endif } return ret; } -- Edit bug report at http://bugs.php.net/?id=37194&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37194&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37194&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37194&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37194&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37194&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37194&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37194&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37194&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37194&r=support Expected behavior: http://bugs.php.net/fix.php?id=37194&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37194&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37194&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37194&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37194&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37194&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37194&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37194&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37194&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37194&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37194&r=mysqlcfg