New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autoloaded &VERSION and UNIVERSAL::VERSION don't mix #454
Comments
From spider@Orb.Nashua.NH.USDepending on memory allocation patterns, the use of UNIVERSAL::VERSION This fixes that, and causes it to understand an undef GvSV as well as Inline Patch--- universal.c.DIST Tue Jul 20 13:18:16 1999
+++ universal.c Sun Aug 29 18:58:08 1999
@@ -197,7 +197,7 @@ XS(XS_UNIVERSAL_VERSION)
gvp = pkg ? (GV**)hv_fetch(pkg,"VERSION",7,FALSE) : Null(GV**);
- if (gvp && (gv = *gvp) != (GV*)&PL_sv_undef && (sv = GvSV(gv))) {
+ if (gvp && isGV(gv = *gvp) && SvOK(sv = GvSV(gv))) {
SV *nsv = sv_newmortal();
sv_setsv(nsv, sv);
sv = nsv; Perl Info
|
Migrated from rt.perl.org#1295 (status was 'resolved')
Searchable as RT1295$
The text was updated successfully, but these errors were encountered: