|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-29 11:44 UTC] sniper@php.net
[2004-01-29 13:27 UTC] Markus dot Lidel at shadowconnect dot com
[2004-02-17 06:08 UTC] sniper@php.net
[2004-02-17 06:14 UTC] Markus dot Lidel at shadowconnect dot com
[2004-02-17 16:58 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 14:00:01 2025 UTC |
Description: ------------ If you use the zend_fetch_list_dtor_id function, and you have for example loaded the "crack" extension (which registers a destructor using the function register_list_destructors()), php crashes. The source of the problem is this line: if (strcmp(type_name, lde->type_name) == 0) { The register_list_destructors() set lde->type_name to NULL. If you replace the code with if (lde->type_name && (strcmp(type_name, lde->type_name) == 0)) { the function works fine. Reproduce code: --------------- int id = zend_fetch_list_dtor_id function("foo");