8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36a1ba9 commit ccd69b8Copy full SHA for ccd69b8
src/pl/plperl/plperl.c
@@ -926,7 +926,7 @@ plperl_trusted_init(void)
926
if (!isGV_with_GP(sv) || !GvCV(sv))
927
continue;
928
SvREFCNT_dec(GvCV(sv)); /* free the CV */
8000 929
- GvCV(sv) = NULL; /* prevent call via GV */
929
+ GvCV_set(sv, NULL); /* prevent call via GV */
930
}
931
hv_clear(stash);
932
src/pl/plperl/plperl.h
@@ -85,6 +85,11 @@
85
(U32)HeKUTF8(he))
86
#endif
87
88
+/* supply GvCV_set if it's missing - ppport.h doesn't supply it, unfortunately */
89
+#ifndef GvCV_set
90
+#define GvCV_set(gv, cv) (GvCV(gv) = cv)
91
+#endif
92
+
93
/* declare routines from plperl.c for access by .xs files */
94
HV *plperl_spi_exec(char *, int);
95
void plperl_return_next(SV *);
0 commit comments