1 *** a/src/pl/plperl/plperl.c
2 --- b/src/pl/plperl/plperl.c
4 *** 700,706 **** plperl_trusted_init(void)
5 if (!isGV_with_GP(sv) || !GvCV(sv))
7 SvREFCNT_dec(GvCV(sv)); /* free the CV */
8 ! GvCV(sv) = NULL; /* prevent call via GV */
11 /* invalidate assorted caches */
13 if (!isGV_with_GP(sv) || !GvCV(sv))
15 SvREFCNT_dec(GvCV(sv)); /* free the CV */
16 ! GvCV_set(sv, NULL); /* prevent call via GV */
19 /* invalidate assorted caches */
20 *** a/src/pl/plperl/plperl.h
21 --- b/src/pl/plperl/plperl.h
28 + /* supply GvCV_set if it's missing - ppport.h doesn't supply it, unfortunately */
30 + #define GvCV_set(gv, cv) (GvCV(gv) = cv)
33 /* routines from spi_internal.c */