Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 87356 invoked from network); 9 Jan 2006 20:12:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Jan 2006 20:12:27 -0000 Received: (qmail 20124 invoked by uid 500); 9 Jan 2006 20:12:20 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 20109 invoked by uid 500); 9 Jan 2006 20:12:20 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 20098 invoked by uid 99); 9 Jan 2006 20:12:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2006 12:12:19 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.236.219.70] (HELO piccollo.p6m7g8.net) (66.236.219.70) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2006 12:12:19 -0800 Received: from [192.168.0.210] (pcp09581396pcs.rtchrd01.md.comcast.net [68.49.179.55]) (authenticated bits=0) by piccollo.p6m7g8.net (8.13.4/8.13.4) with ESMTP id k09KBLx6068347 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Mon, 9 Jan 2006 15:11:21 -0500 (EST) (envelope-from pgollucci@p6m7g8.com) Message-ID: <43C2C368.1070604@p6m7g8.com> Date: Mon, 09 Jan 2006 15:11:20 -0500 From: "Philip M. Gollucci" User-Agent: Thunderbird 1.5 (X11/20051124) MIME-Version: 1.0 To: John ORourke CC: Clint Edwards , Torsten Foertsch , modperl@perl.apache.org Subject: Re: [MP2] possible pnotes bug? References: <200601091914.13383.torsten.foertsch@gmx.net> <1136830862.5590.2.camel@localhost.localdomain> <43C2B7DA.4060002@o-rourke.org> In-Reply-To: <43C2B7DA.4060002@o-rourke.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N John ORourke wrote: > Torsten wasn't changing the value pointed to by $ctx, he was changing > $ctx - therefore it looks like pnotes actually stores a reference to the > scalar you give it, instead of the actual scalar itself as the docs > imply. So I'd say it's a doc bug, but I'd prefer pnotes to store the > actual scalar instead. You are correct. from: xs/Apache2/RequestUtil/Apache2__RequestUtil.h:: SV *mpxs_Apache2__RequestRec_pnotes(pTHX_ request_rec *r, SV *key, SV *val) ... retval = *hv_store(rcfg->pnotes, k, len, SvREFCNT_inc(val), 0); ... The reference count is being increment to val which is the value being passed in. Feel free to submit a documentation patch that would alleviate confusion. -- ------------------------------------------------------------------------ "Love is not the one you can picture yourself marrying, but the one you can't picture the rest of your life without." "It takes a minute to have a crush on someone, an hour to like someone, and a day to love someone, but it takes a lifetime to forget someone..." "I wanna hold ya till I die ... I wanna hold ya till the fear in me subsides." Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198 Consultant / http://p6m7g8.net/Resume/resume.shtml Senior Software Engineer - TicketMaster - http://ticketmaster.com 1024D/A79997FA F357 0FDD 2301 6296 690F 6A47 D55A 7172 A799 97F