unloading php extensions : reverse dl()
问题 To you gurus out there, is there any hidden gem in PHP that could unload a specific extension at runtime ? 回答1: No, that's not possible and most likely never will: [2011-02-08 11:34 UTC] rasmus@php.net extension unloading on a per-request basis simply isn't feasible from a performance point of view. And you obviously can't unload and leave it unloaded for the next request because that next request may be for a page that expects the extension to be there. However, using dl() is discouraged