Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@www.apache.org Received: (qmail 14776 invoked from network); 12 Dec 2005 21:07:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Dec 2005 21:07:47 -0000 Received: (qmail 9096 invoked by uid 500); 12 Dec 2005 21:07:43 -0000 Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 9038 invoked by uid 500); 12 Dec 2005 21:07:42 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 9027 invoked by uid 99); 12 Dec 2005 21:07:42 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of mmclagan@invlogic.com designates 198.182.196.8 as permitted sender) Received: from [198.182.196.8] (HELO utility.invlogic.com) (198.182.196.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Dec 2005 13:07:42 -0800 Received-SPF: pass (utility.invlogic.com: domain of mmclagan@invlogic.com designates 198.182.196.10 as permitted sender) receiver=utility.invlogic.com; client_ip=198.182.196.10; envelope-from=mmclagan@invlogic.com; Received: from [198.182.196.10] (linux.invlogic.com [198.182.196.10]) by utility.invlogic.com (8.13.5/8.13.3) with ESMTP id jBCL6AOO030293 for ; Mon, 12 Dec 2005 16:06:45 -0500 Message-ID: <439DE63F.4050207@invlogic.com> Date: Mon, 12 Dec 2005 16:06:07 -0500 From: Michael McLagan Reply-To: mmclagan+reply@invlogic.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040805 Netscape/7.2 X-Accept-Language: en-us, en MIME-Version: 1.0 To: apreq-dev@httpd.apache.org Subject: Assertion failed Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Envelope-Sender: X-Envelope-Source: 198.182.196.10 X-Scanned-By: MIMEDefang 2.39 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, I am porting some code to 2.06 and came across this: $cookie = Apache2::Cookie->new($self->request, -name => $name, -value => '', -path => '/', -domain => $self->site->server, -expires => '-1s'); $cookie->bake($self->request); The purpose of the above is to clear out the cookie at the browser. The not so happy result of which is: [Mon Dec 12 15:13:26 2005] [error] [client 127.0.0.1] Assertion ((RETVAL)->sv_flags & 0xff) >= SVt_PV failed: file "Request.xs", line 58 at /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/Apache2/Cookie.pm line 59. \n, referer: http://test.example.com/ I don't know if it's permissible by the relevant standards to have a cookie with a value which is an empty string, but I would suggest that there might be a better way to handle it instead of the above log line. When I tried to create the cookie with 'undef', I got back 'undef' which seemed reasonable. Maybe the empty string should do the same? Thanks for your efforts, Michael