#37194 [Opn]: HTTP memory increased
ID: 37194 User updated by: ysuzuki at zend dot co dot jp Reported By: ysuzuki at zend dot co dot jp Status: Open Bug Type: Informix related Operating System: RedHat Linux PHP Version: 4.4.2 New Comment: Sorry, Bug fixed right code is here. #if (ESQLC_VERSION >= 720 || (ESQLC_VERSION >= 501 && ESQLC_VERSION < 600)) SqlFreeMem(s_da, SQLDA_FREE); #else <-- *** I added this line *** free(s_da); #endif Previous Comments: [2006-04-26 02:14:08] ysuzuki at zend dot co dot jp If its not match condition as follows, it will never free Informix memory, I think. (ESQLC_VERSION >= 720 || (ESQLC_VERSION >= 501 && ESQLC_VERSION < 600) I changed this portion is the following. After that, This problem was fixed. I believe this modification is right code. Please take it. #if (ESQLC_VERSION >= 720 || (ESQLC_VERSION >= 501 && ESQLC_VERSION < 600)) SqlFreeMem(s_da, SQLDA_FREE); } else { #else free(s_da); #endif ------------------------ [2006-04-25 09:14:47] ysuzuki at zend dot co dot jp 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 this bug report at http://bugs.php.net/?id=37194&edit=1
#37194 [Opn]: HTTP memory increased
ID: 37194 User updated by: ysuzuki at zend dot co dot jp Reported By: ysuzuki at zend dot co dot jp Status: Open Bug Type: Informix related Operating System: RedHat Linux PHP Version: 4.4.2 New Comment: If its not match condition as follows, it will never free Informix memory, I think. (ESQLC_VERSION >= 720 || (ESQLC_VERSION >= 501 && ESQLC_VERSION < 600) I changed this portion is the following. After that, This problem was fixed. I believe this modification is right code. Please take it. #if (ESQLC_VERSION >= 720 || (ESQLC_VERSION >= 501 && ESQLC_VERSION < 600)) SqlFreeMem(s_da, SQLDA_FREE); } else { #else free(s_da); #endif Previous Comments: -------- [2006-04-25 09:14:47] ysuzuki at zend dot co dot jp 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 this bug report at http://bugs.php.net/?id=37194&edit=1
#37194 [NEW]: HTTP memory increased
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
#31676 [Bgs]: Occured SMTP error if we sent 10 mails with mail() function at the same tim
ID: 31676 User updated by: ysuzuki at zend dot co dot jp Reported By: ysuzuki at zend dot co dot jp Status: Bogus Bug Type: Mail related Operating System: Windows 2000 PHP Version: 4.3.10 New Comment: We also tried the following test by using same script file such as send_mail.php. 1) Launched 10 DOS prompt on Windows 2000 Server 2) Launched send_mail.php on each DOS prompt such as "php.exe send_mail.php" This result was OK. Because All sent E-mails were successful.Therefore, This problem looks like related with PHP + Apache 2, I think. Previous Comments: [2005-01-24 09:52:00] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. . [2005-01-24 09:31:41] ysuzuki at zend dot co dot jp Description: When we tried to sent 10 mails at the same time by using mail function(), Some mails were occurred SMTP 503 error such as Actual result portion.Please see the following "Actual result". How to reproduce: 1)Launched your Web browser 2)Access send_mail.php script Repeat access send_mail.php by clicking reload button on Web browser Reproduce code: --- Expected result: All send requested E-mail were successful by using mail() function even it was many requested from Web browser. Actual result: -- Error Message: [18-Jan-2005 09:18:23] PHP Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp.example.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in \\exampleserver\send_mail.php line xxx [18-Jan-2005 09:18:23] PHP Warning: mail() [function.mail]: SMTP server response: 503 Sender already specified in \\exampleserver\send_mail.php on line xxx -- Edit this bug report at http://bugs.php.net/?id=31676&edit=1
#31676 [NEW]: Occured SMTP error if we sent 10 mails with mail() function at the same tim
From: ysuzuki at zend dot co dot jp Operating system: Windows 2000 PHP version: 4.3.10 PHP Bug Type: Mail related Bug description: Occured SMTP error if we sent 10 mails with mail() function at the same tim Description: When we tried to sent 10 mails at the same time by using mail function(), Some mails were occurred SMTP 503 error such as Actual result portion.Please see the following "Actual result". How to reproduce: 1)Launched your Web browser 2)Access send_mail.php script Repeat access send_mail.php by clicking reload button on Web browser Reproduce code: --- Expected result: All send requested E-mail were successful by using mail() function even it was many requested from Web browser. Actual result: -- Error Message: [18-Jan-2005 09:18:23] PHP Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp.example.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in \\exampleserver\send_mail.php line xxx [18-Jan-2005 09:18:23] PHP Warning: mail() [function.mail]: SMTP server response: 503 Sender already specified in \\exampleserver\send_mail.php on line xxx -- Edit bug report at http://bugs.php.net/?id=31676&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31676&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31676&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31676&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=31676&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=31676&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31676&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31676&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31676&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31676&r=support Expected behavior: http://bugs.php.net/fix.php?id=31676&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31676&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31676&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=31676&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31676&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=31676&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31676&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31676&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31676&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31676&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31676&r=mysqlcfg