can zend_hash_add used with local variables?

[email protected]
Newsgroups php.version4
Message-ID <[email protected]>
    not too sure - is:

    { 
        putenv_entry pe;
        ....
        zend_hash_add(&BG(putenv_ht),pe.key,pe.key_len+1,(void **) &pe,sizeof(putenv_entry),NULL);

        ...

    valid?

    usually one would alloc a putenv_entry * and pass that to
    hash_add, right?

    confused...

    tc
-- 

Thies C. Arntzen                 "One Big-Mac, Small Fries and a Coke!"
Digital Collections             Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93                              20097 Hamburg / Germany
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.