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

Commitcd76ad6

Browse files
committed
Document the fix for perl 5.10 with this comment:
* The temporary enabling of the caller opcode here is to work around a * bug in perl 5.10, which unkindly changed the way its Safe.pm works, without * notice. It is quite safe, as caller is informational only, and in any case * we only enable it while we load the 'strict' module.
1 parentac11d9d commitcd76ad6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎src/pl/plperl/plperl.c

Lines changed: 8 additions & 1 deletion
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.135 2008/01/22 20:17:37 adunstan Exp $
4+
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.136 2008/01/23 00:55:47 adunstan Exp $
55
*
66
**********************************************************************/
77

@@ -260,6 +260,13 @@ _PG_init(void)
260260
#defineSAFE_MODULE \
261261
"require Safe; $Safe::VERSION"
262262

263+
/*
264+
* The temporary enabling of the caller opcode here is to work around a
265+
* bug in perl 5.10, which unkindly changed the way its Safe.pm works, without
266+
* notice. It is quite safe, as caller is informational only, and in any case
267+
* we only enable it while we load the 'strict' module.
268+
*/
269+
263270
#defineSAFE_OK \
264271
"use vars qw($PLContainer); $PLContainer = new Safe('PLPerl');" \
265272
"$PLContainer->permit_only(':default');" \

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp