perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ask Bjoern Hansen <...@valueclick.com>
Subject Re: [BUG FIX] Apache.xs write_client
Date Thu, 10 Aug 2000 01:46:06 GMT
On Wed, 9 Aug 2000, T.J. Mather wrote:

I'm not that comfortable with the perlguts, but it makes somewhat
sense to me so I've committed it.

 - ask

> Hi,
> 
> I have already posted this to mod_perl@apache.org:
> 
> I found and fixed a bug with Apache::print not dereferencing scalar
> referencess that are of type SVt_PVIV.  The patch is
> 
> PATCH:
> --- Apache.xs.old       Wed Aug  9 10:23:31 2000
> +++ Apache.xs   Wed Aug  9 10:23:13 2000
> @@ -1076,7 +1076,7 @@
> 
>      for(i = 1; i <= items - 1; i++) {
>         int sent = 0;
> -        SV *sv = SvROK(ST(i)) && (SvTYPE(SvRV(ST(i))) == SVt_PV) ?
> +        SV *sv = SvROK(ST(i)) && (SvTYPE(SvRV(ST(i))) == SVt_PV || SvTYPE(SvRV(ST(i)))
== SVt_PVIV) ?
>                   (SV*)SvRV(ST(i)) : ST(i);
>         buffer = SvPV(sv, len);
>  #ifdef APACHE_SSL
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
> 

-- 
ask bjoern hansen - <http://www.netcetera.dk/~ask/>
more than 70M impressions per day, <http://valueclick.com>


Mime
View raw message