|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-05-10 09:34 UTC] tom dot anheyer at berlinonlin dot de
[2000-06-11 19:19 UTC] zeev at cvs dot php dot net
[2000-07-04 10:46 UTC] stas at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 01:00:01 2025 UTC |
while using modules loaded with dl() I notice that the module shutdown runs before calling any registered list destructors. The module shutdown removes the destructor buckets from the destructors list. This results in the error log: Unknown list entry type in request shutdown (19) in Unknown on line 0 The list destructor is not called. The Code works in the former PHP3 Module and I can't see a major difference to the code in ext/standard/dir.c. Here is the code: static int le_http; static void http_destructor(php_http_request *preq) { ... } PHP_MINIT_FUNCTION(http_init) { ... le_http = register_list_destructors(http_destructor,NULL); ... } DLEXPORT PHP_FUNCTION(http) { php_http_request *preq; int handle; ... preq = ... handle = zend_list_insert(preq, le_http); object_init_ex (return_value, http_class_entry_ptr); add_property_resource (return_value, "handle", handle); }