I am getting some serious memory leaks due to the difference between a module loaded via the ini file and one loaded via a dl call in a script.
When loaded via the ini file, the memory is fine as the resources are killed in the correct order via the zend_hash_graceful_reverse_destroy call. When a module is loaded via dl call, the module is removed via the modules_destructor which kills off the resources in the order they were created in a script (at least looking at the stack while debugging this is what it shows is happening). Is this behavior by design or is it incorrect as some extensions rely on the reverse destruction on the resources. I would assume this is incorrect as it now no longer consistent execution of an extension if one were to load the extension using dl rather than from the ini file. Running some of them under Windows, php completely dies due to memory access violations. Thanks, Rob -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php