develooper Front page | perl.perl5.porters | Postings from March 2000

Re: [ID 20000315.003] perl5.6-RC1 not OK - modules complain.

Thread Previous | Thread Next
From:
Doug MacEachern
Date:
March 16, 2000 10:46
Subject:
Re: [ID 20000315.003] perl5.6-RC1 not OK - modules complain.
Message ID:
Pine.LNX.4.10.10003161029320.429-100000@mojo.covalent.net
On Thu, 16 Mar 2000, Gurusamy Sarathy wrote:
 
> cv_undef() and cv_const_sv() are not in the list of public API
> functions.  I'm not sure why mod_perl needs them, but it seems like
> a bad idea to use them.  (SvREFCNT_dec() should be used rather than
> cv_undef(), because the latter will clobber a CV regardless of how
> many people own it.  And cv_const_sv() is purely internal.)

Apache::Symbol::undef wants to clobber the CV regardless.  it was a
special version of pp_undef to avoid the old mandatory warning of constant
subroutine being re-defined.
cv_const_sv() is handy to check if a subroutine has been constant
folded.  i didn't notice this breakage, both are referenced in
Apache/Symbol.so, which builds fine, but is not used by the 'core'.  now i
notice mod_perl skips the modules/symbol test because it fails to load.
it would be nice if these could be made public again.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About