summaryrefslogtreecommitdiffstats
path: root/Bugzilla/CGI.pm
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-05-29 14:56:37 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-05-29 14:56:37 +0200
commitb1afdcf8b033fb1dbff84b16c1f0926e279955e2 (patch)
tree572430675fec06353c60afa8faf58b9fd8e19e2f /Bugzilla/CGI.pm
parente979ef266bbead3e28c85d47e50746c4533c4943 (diff)
downloadbugzilla-b1afdcf8b033fb1dbff84b16c1f0926e279955e2.tar.gz
bugzilla-b1afdcf8b033fb1dbff84b16c1f0926e279955e2.tar.xz
Bug 655847: Accessing buglist.cgi throws: Use of inherited AUTOLOAD for non-method Bugzilla::CGI::SERVER_PUSH() is deprecated at Bugzilla/CGI.pm line 233
r/a=mkanat
Diffstat (limited to 'Bugzilla/CGI.pm')
-rw-r--r--Bugzilla/CGI.pm10
1 files changed, 1 insertions, 9 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm
index 40eab2a15..627b78b58 100644
--- a/Bugzilla/CGI.pm
+++ b/Bugzilla/CGI.pm
@@ -38,17 +38,9 @@ BEGIN {
# isn't Windows friendly (Bug 248988)
$ENV{'TMPDIR'} = $ENV{'TEMP'} || $ENV{'TMP'} || "$ENV{'WINDIR'}\\TEMP";
}
+ *AUTOLOAD = \&CGI::AUTOLOAD;
}
-# CGI.pm uses AUTOLOAD, but explicitly defines a DESTROY sub.
-# We need to do so, too, otherwise perl dies when the object is destroyed
-# and we don't have a DESTROY method (because CGI.pm's AUTOLOAD will |die|
-# on getting an unknown sub to try to call)
-sub DESTROY {
- my $self = shift;
- $self->SUPER::DESTROY(@_);
-};
-
sub _init_bz_cgi_globals {
my $invocant = shift;
# We need to disable output buffering - see bug 179174