Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitac11d9d

Browse files
committed
Work around for perl 5.10 bug - fix due to perl hacker Simon Cozens.
1 parent6f8f8d2 commitac11d9d

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/0117: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)

[8]ページ先頭

©2009-2025 Movatter.jp