Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26775 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12494 invoked by uid 1010); 3 Dec 2006 12:43:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 12479 invoked from network); 3 Dec 2006 12:43:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Dec 2006 12:43:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=good Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.182.184 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 64.233.182.184 nf-out-0910.google.com Linux 2.4/2.6 Received: from [64.233.182.184] ([64.233.182.184:58806] helo=nf-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/D5-04825-316C2754 for ; Sun, 03 Dec 2006 07:42:30 -0500 Received: by nf-out-0910.google.com with SMTP id l35so4425779nfa for ; Sun, 03 Dec 2006 04:41:53 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LVsfsZVOXTPOAj1BxXWhTufyKe4Wp+RaSoabGcKCF0YH80oZbUIdcOwzeX5Coy/+DlvPX9bMfxBI06UgkxuxFAthXypXV1qYrnHbxC8JYc1hK+KcbZ8rcs5UtKRo6g9p2pTC/nMiocBYhgm77PLxakVIGIldjDV0077jtrWabxQ= Received: by 10.78.139.1 with SMTP id m1mr6659025hud.1165149712748; Sun, 03 Dec 2006 04:41:52 -0800 (PST) Received: by 10.78.162.2 with HTTP; Sun, 3 Dec 2006 04:41:52 -0800 (PST) Message-ID: Date: Sun, 3 Dec 2006 15:41:52 +0300 To: internals@lists.php.net In-Reply-To: <00ca01c716d6$50e006e0$0201a8c0@pc1> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <006601c716c0$4bf185c0$0201a8c0@pc1> <00ca01c716d6$50e006e0$0201a8c0@pc1> Subject: Re: [PHP-DEV] persistent memory management From: indeyets@gmail.com ("Alexey Zakhlestin") 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 wrote: > Hi Alexey, > > ----- Original Message ----- > From: "Alexey Zakhlestin" > Sent: Sunday, December 03, 2006 > > > On 12/3/06, Matt Wilmas 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/