[PHP-DEV] Bug id #5474 From: Steven Roussey (sroussey <email protected>)
Date: 11/30/00

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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>