Re: PHP extension disappeared after running a few times behind Apache
| From: | Stanley Cheung | Date: | Wed, 07 Oct 2015 02:12:54 +0000 |
| Subject: | Re: PHP extension disappeared after running a few times behind Apache | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-13241@lists.php.net to get a copy of this message | ||
Hi Hannes,
Thank you very much! The fix appears to be working! Looks like I had been
going at it all wrong - the error complains about the constant, maybe you
should look into how your constants are constructed/registered! I had been
looking at memory leaks or execution time and other PHP/Apache config
options/knobs and went nowhere. Let me educate myself more on PHP constants!
Thank you for the pull request - let me do some more testing and will merge
accordingly. Thanks for the contribution! Really appreciate the help.
Have a nice day,
-Stanley
On Tue, Oct 6, 2015 at 6:21 PM, Hannes Magnusson <hannes.magnusson@gmail.com
> wrote:
> On Mon, Oct 5, 2015 at 4:27 PM, Stanley Cheung <stanleycheung@google.com>
> wrote:
> > Hi Pecl-dev,
> >
> > I am a developer for the gRPC PHP extension
> > <https://pecl.php.net/package/grpc> and run into an
> > issue when the
> > extension is being used behind Apache. Are there any experts here that
> can
> > help me debug this further?
>
>
> You were absolutely on the right track.
>
> During request shutdown (RSHUTDOWN) everything that isn't persisted in
> one way or another is cleaned up.
> This includes constants -- unless they've been registered as
> CONST_PERSISTENT.
>
> See: https://github.com/grpc/grpc/pull/3685
>
> -Hannes
>