perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: Bad fix for "fix "PerlSetVar Foo 0" so that $r->dir_config('Foo') returns 0, not undef" in dev tree
Date Tue, 09 Mar 2004 18:43:51 GMT


Geoffrey Young wrote:
>>>>-    if (!SvTRUE(RETVAL)) {
>>>>+    if (!SvOK(RETVAL)) {

ok, the attached patch fixes the problem.  it turns out that XS as simple as
this

    RETVAL = Nullsv;

    if (!SvOK(RETVAL)) {
      XSRETURN_UNDEF;
    }

dumps core all on its own (without mod_perl's help :)

will be fixed in the next release (whenever that is)

--Geoff

Mime
View raw message