Re: persistent memory management

From: Date: Sun, 03 Dec 2006 12:41:52 +0000
Subject: Re: persistent memory management
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-26775@lists.php.net to get a copy of this message
first zend_hash_add adds ns_ht, so it is (HashTable *) second zend_hash_add adds p_val, so it is (zval *) am I missing something obvious? On 12/3/06, Matt Wilmas <php_lists@realplain.com> wrote:
Hi Alexey, ----- Original Message ----- From: "Alexey Zakhlestin" Sent: Sunday, December 03, 2006 On 12/3/06, Matt Wilmas <php_lists@realplain.com> wrote:
Hi Alexey, Not sure what the exact problem is, or if this is related, but in your loc_set() function's zend_hash_add() calls, you have sizeof(HashTable)
and
sizeof(zval). Shouldn't both of those be sizeof(HashTable *) ? :-)
(HashTable *) and (zval *), actually thanks Well, your variables being added, g_ht and ns_ht, are both HashTable * , so... ;-) Alexey Zakhlestin http://blog.milkfarmsoft.com/ Matt
-- Alexey Zakhlestin http://blog.milkfarmsoft.com/

« previous php.internals (#26775) next »