Re: cvs: pecl /apc apc_compile.c apc_globals.h php_apc.c

[email protected] (Gopal Vijayaraghavan) Tue, 17 Oct 2006 13:48:33 +0530
Newsgroups php.apc.dev
Message-ID <[email protected]>
Brian Shire wrote:

> +    /* Maintain a list of zvals we've copied to properly handle recursive structures */
> +    if(!APCG(copied_zvals)) {
> +        APCG(copied_zvals) = emalloc(sizeof(HashTable));
> +        zend_hash_init(APCG(copied_zvals), 0, NULL, NULL, 0);

Are you sure this is the best way ?

That bug was left hanging because I didn't want to do this and penalize
those who don't use apc_store/fetch with an extra memory penalty for
every request.

If you don't mind, I'll be rewriting this bit sometime next week or so.

Cheers,
Gopal
-- 
If I learn from my mistakes, pretty soon I'll know everything.