Re: APC/Apache2
| From: | Rasmus Lerdorf | Date: | Mon, 27 Jun 2005 18:04:06 +0000 |
| Subject: | Re: APC/Apache2 | ||
| References: | 1 2 3 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-2493@lists.php.net to get a copy of this message | ||
Xuefer wrote:
>>I just tried building current current APC CVS HEAD against the lattest
>>Apache2-prefork with current PHP-5.1 CVS HEAD and everything worked fine.
>
> prefork, it's not thread enabled
> that's why you don't have the problem
>
> as i say, php do not initize builtin_functions for user classes
>
> === for apache2-mpm-worker, thread enabled
> CG(class_entry) is no longer initized by 0 at first, which is more
> likely trigger the crash.
>
> some malloc calls return memory full of 0 but sometimes not.
> try enable maintainer zts, and modify php-src to have memset -1 at
> where ***_globals is allocated
> i haven't tried but i'm sure, as i disabled the code for
> builtin_functions and get it very stable.
> thanks for Rasmus to bring us the APC
I honestly couldn't care less about supporting threaded Apache. It just
doesn't make any sense.
> === for nonthread:
> CG(class_entry).builtin_functions is cleared to 0 by compiler, as it's
> true global variable
> but internal class still might override
> CG(class_entry).builtin_functions and apc start to crash for new user
> class
Sorry, I don't understand what you mean here. Perhaps if you provide a
PHP code example that illustrates the problem.
-Rasmus