Skip to content

Commit ac11d9d

Browse files
committed
Work around for perl 5.10 bug - fix due to perl hacker Simon Cozens.
1 parent 6f8f8d2 commit ac11d9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pl/plperl/plperl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**********************************************************************
22
* plperl.c - perl as a procedural language for PostgreSQL
33
*
4-
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.134 2007/12/01 17:58:42 tgl Exp $
4+
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.135 2008/01/22 20:17:37 adunstan Exp $
55
*
66
**********************************************************************/
77

@@ -272,8 +272,8 @@ _PG_init(void)
272272
"sub ::mksafefunc {" \
273273
" my $ret = $PLContainer->reval(qq[sub { $_[0] $_[1] }]); " \
274274
" $@ =~ s/\\(eval \\d+\\) //g if $@; return $ret; }" \
275-
"$PLContainer->permit('require'); $PLContainer->reval('use strict;');" \
276-
"$PLContainer->deny('require');" \
275+
"$PLContainer->permit(qw[require caller]); $PLContainer->reval('use strict;');" \
276+
"$PLContainer->deny(qw[require caller]); " \
277277
"sub ::mk_strict_safefunc {" \
278278
" my $ret = $PLContainer->reval(qq[sub { BEGIN { strict->import(); } $_[0] $_[1] }]); " \
279279
" $@ =~ s/\\(eval \\d+\\) //g if $@; return $ret; }"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy