Bug id #5474
| From: | Steven Roussey | Date: | Thu, 30 Nov 2000 23:12:24 +0000 |
| Subject: | Bug id #5474 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39736@lists.php.net to get a copy of this message | ||
PHP Bug id #5474: persistent connections not closed on Apache child exit
Since this bug generates 100s of gigs of faulty errors in mysql error log
(such that I can not see the real errors), I decided to take a look at this.
I'm not familiar with PHP internals, so I apologize in advance if I ask
stupid questions.
1) Aren't type_name and module_number required params for this?
ZEND_API int zend_register_list_destructors_ex(rsrc_dtor_func_t ld,
rsrc_dtor_func_t pld, char *type_name, int module_number)
362
le_link = register_list_destructors(_close_mysql_link,NULL);
le_plink = register_list_destructors(NULL,_close_mysql_plink);
2) Why does _close_mysql_link use efree(link) while _close_mysql_plink uses
just free(link)?
I think not setting the module number in #1 will lead to a failure of
destructors being called in zend_clean_module_rsrc_dtors_cb. I could not
find a case in another extention where module_number was left out.
Zeev, I think this bug is on your list -- what do you think?
Sincerely,
Steven Roussey
Network54.com
http://network54.com/?pp=e