Re: PHP Extensions as Shared Objects?
| From: | mike | Date: | Fri, 30 May 2008 02:51:21 +0000 |
| Subject: | Re: PHP Extensions as Shared Objects? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-274857@lists.php.net to get a copy of this message | ||
On 5/29/08, Weston C <westonc@gmail.com> wrote:
> Fortunately, I'll have full control of the hosting environment in the
> context this matters. :)
>
> dl is definitely interesting, but I'm worried that runtime invocation
> might mean performance hits. Is there a way to do load/startup time
> inclusion?
you could put it in your php ini file
extension = "foo.so"
then I believe the impact will be on the first instance for that php
engine. so in fastcgi mode, you'd only have the hit once every
PHP_FCGI_MAX_REQUESTS when the child restarts...