Skip to content

Commit cd76ad6

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 parent ac11d9d commit cd76ad6

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
#define SAFE_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
#define SAFE_OK \
264271
"use vars qw($PLContainer); $PLContainer = new Safe('PLPerl');" \
265272
"$PLContainer->permit_only(':default');" \

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