Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60300 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79768 invoked from network); 24 Apr 2012 23:25:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Apr 2012 23:25:42 -0000 Authentication-Results: pb1.pair.com header.from=yader.hernandez@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yader.hernandez@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: yader.hernandez@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:36554] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3D/24-54790-576379F4 for ; Tue, 24 Apr 2012 19:25:42 -0400 Received: by obbup16 with SMTP id up16so1738643obb.29 for ; Tue, 24 Apr 2012 16:25:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=OyDG22nh6yz2cDZ76BY8a1zwQ/mqzvPEuVVqZeHGrgg=; b=F5jLziAVnRxXsQH8DizIS88AEMt5brWYlkATlNf9+0+SSUUPbrFw1TM270gpIYpDTe Dzx6D6XQTyc6R4jY14WMEYI4+b4lj0mBR7PzbDoPEILd4HaZRfvoKZE0L57ZKjv+jVit DM7/cnhfopoKrNH2GpsPXMghL5xdJu7pphbdA/o/pTextKAkUDJYE3rs5oVLxAnk3J3j cvSm/S4hCh3+YZ91kMKPVrOGQuaxsvo+g5rVebgovDBbSv3rwHcSSA0XziYTywXH7rtH Bu9+AtoqmFo1nIqxjMtdv5Sp0Sq1EfJDn3RxwRWCiKzv/UCMJeyO88qNbyrlQ8NN3/9z ic2A== MIME-Version: 1.0 Received: by 10.182.36.99 with SMTP id p3mr617116obj.47.1335309939236; Tue, 24 Apr 2012 16:25:39 -0700 (PDT) Received: by 10.60.147.199 with HTTP; Tue, 24 Apr 2012 16:25:39 -0700 (PDT) Date: Tue, 24 Apr 2012 16:25:39 -0700 Message-ID: To: PHP Developers Mailing List Content-Type: multipart/alternative; boundary=f46d0445178797e04104be751274 Subject: freeing zvals ref count From: yader.hernandez@gmail.com (Yader Hernandez) --f46d0445178797e04104be751274 Content-Type: text/plain; charset=ISO-8859-1 Hello, In the extension I'm currently working on, I call add_index_zval and on success, I call Z_ADDREF_P on the new zval. When I'm freeing everything, I need to remove the ref count. Digging through the source code, I found Z_DELREF_P. Would this be the correct macro to call? Is there anything else to keep in mind when calling it? thx --f46d0445178797e04104be751274--