Brad,

[snip]
/* {{{ php_test_init_globals
 */
static void php_test_init_globals(zend_test_globals *test_globals)
{
 test_globals->global_hash = emalloc(sizeof(HashTable));
 zend_hash_init(test_globals->global_hash, 0, NULL, delete_friggin_type, 0);

 zend_hash_add(test_globals->global_hash, "mykey", strlen("mykey"),
"myvalue", strlen("myvalue"), NULL);
}
/* }}} */

[snip]

    shouldnt module globals be malloc'ed as opposed to emalloc'ed.    all
emalloced memory is automagically reclaimed at the end of a request.


Brad Lafountain <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Sorry i forgot to attach the extension
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE Valentine eCards with Yahoo! Greetings!
> http://greetings.yahoo.com



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to