开发者

Module loading and Apache mod-php performance

开发者 https://www.devze.com 2023-02-03 15:29 出处:网络
When using loadable modules such as geoip, is there a performance hit to always loading the module in php.ini ? In other words, is there a performance advantage to using dl() if the module in question

When using loadable modules such as geoip, is there a performance hit to always loading the module in php.ini ? In other words, is there a performance advantage to using dl() if the module in question is not used very often ?

BTW, I am aware dl() has been removed in PHP 5.3, just wondering about the performance implications 开发者_C百科should we decide to remove this function from our code base.


dl() makes no sense. PHP can control modules on the fly without lose performance, so loading with dl() has no more sense - I see dl() only as a facility way to load modules.

Ok, some people will be angry because shared hosts cannot gain access to php.ini to their users, but anyway...

0

精彩评论

暂无评论...
验证码 换一张
取 消