Possible BUG: Unknown list entry type in request shutdown

From: Date: Tue, 28 Mar 2000 14:40:02 +0000
Subject: Possible BUG: Unknown list entry type in request shutdown
Groups: php.version4 
Request: Send a blank email to php-version4+get-12743@lists.php.net to get a copy of this message
Hello again, I found the problem after some debugging and adding a module shutdown function. The module shutdown runs BEFORE calling the list destructor and REMOVES the destructor from the list_destructors hash. I think this is a bug. In RC1 the behaviour is the same. regards tom ---------- Weitergeleitete Nachricht von Tom Anheyer ---------- Subject: [PHP4BETA] Unknown list entry type in request shutdown Hello, I have a problem with the list destructor in a dynamic linked php-4pl1 module. I got the error message: Unknown list entry type in request shutdown (19) in Unknown on line 0 after each request in the error log. 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); } Thank you in advance. tom -- Tom Anheyer G+J BerlinOnline GmbH Tel. : +49-(0)30-2327-5210 im Pressehaus am Alexanderplatz Fax: +49-(0)30-2327-5596 Karl-Liebknecht-Straße 29 E-Mail: Tom.Anheyer@BerlinOnline.de D-10178 Berlin URL: http://www.BerlinOnline.de BerlinOnline ist ein Service von Berliner Zeitung, TIP BerlinMagazin, Berliner Kurier und Berliner Abendblatt. -- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net For additional commands, e-mail: php4beta-help@lists.php.net To contact the list administrators, e-mail: php4beta-admin@lists.php.net ------------------------------------------------------- -- Tom Anheyer G+J BerlinOnline GmbH Tel. : +49-(0)30-2327-5210 im Pressehaus am Alexanderplatz Fax: +49-(0)30-2327-5596 Karl-Liebknecht-Straße 29 E-Mail: Tom.Anheyer@BerlinOnline.de D-10178 Berlin URL: http://www.BerlinOnline.de BerlinOnline ist ein Service von Berliner Zeitung, TIP BerlinMagazin, Berliner Kurier und Berliner Abendblatt.

« previous php.version4 (#12743) next »