Re: zend_internal_class, inheritence and apache2 .. on my nerves

From: Date: Fri, 02 Mar 2007 09:06:15 +0000
Subject: Re: zend_internal_class, inheritence and apache2 .. on my nerves
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-4606@lists.php.net to get a copy of this message
thefirstofall@gmail.com (Bankó Ádám) wrote: > Hi! Hi, > The problem manifests as a SEGFAULT when i try to use my module with the > apache2 SAPI. (It makes multiple MINIT - RINIT - RSHUTDOWN - MSHUTDOWN > cycles.) You should register internal class in MINIT only *once*. So additionally you should check if module is already loaded. User may use dl() instead of 'extension' ini entry. What you do in MSHUTDOWN depends on what you allocated , etc. So in Apache environment what you should be really interested in is RINIT - RSHUTDOWN cycle. Your code *will* segfault if you use zend1 engine and copy properties to ce.default_properties in MINIT for example. Piotras

« previous php.pecl.dev (#4606) next »