httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McLagan <>
Subject Assertion failed
Date Mon, 12 Dec 2005 21:06:07 GMT

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');

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] 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/ line 59.
        \n, referer:

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,


View raw message