On Thu, 16 Mar 2000 10:42:01 PST, Doug MacEachern wrote: >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. OK, consider it done. Sarathy gsar@ActiveState.com