On February 11, 2004 11:20 am, Shane Caraveo wrote:
2. php's dl implementation is broken by design, it should never unload a dl. not only is that a performance issue, but it requires all kinds of code to verify that the dl CAN be unloaded properly, thus the problem with dl in php.
If the dl() loaded extension is not unloaded it means that in a shared environment a module loaded for one vhost would become avaliable for all. In this case why not just load it inside php.ini?
One reason, because you may need an extension prior to being able to have it loaded via php.ini. I can come up with more, but they are easily arguable.
This destroys the ability to enable certain functionality for particular vhost (users) who maybe paying extra for it and are trustworthy enough to use certain extensions and not abuse them.
"Fixing" (I quote because I am in the minority that believes it is broken) dl does not destroy that ability. The ISP in this situation disables dl altogether, and continues merily along as ever before, not using dl. Fixing dl does not cause problems for those people who should already be disabling it for other reasons, it only fixes it for those people want to use it.
My point basicly is, there are other ways (already available) to deal with dl than just leaving it the way it is. The way it is right now still has all the issues you mention, and the disadvantage of not working well and being poor performing.
Shane
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php