Commit 1001cbba authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 787529: Use |use 5.10.1| everywhere

r=wicked a=LpSolit
parent 88157fb0
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla; package Bugzilla;
use 5.10.1;
use strict; use strict;
# We want any compile errors to get to the browser, if possible. # We want any compile errors to get to the browser, if possible.
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Attachment; package Bugzilla::Attachment;
use 5.10.1;
use strict;
=head1 NAME =head1 NAME
Bugzilla::Attachment - Bugzilla attachment class. Bugzilla::Attachment - Bugzilla attachment class.
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Attachment::PatchReader; package Bugzilla::Attachment::PatchReader;
use 5.10.1;
use strict;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Attachment; use Bugzilla::Attachment;
use Bugzilla::Util; use Bugzilla::Util;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Auth; package Bugzilla::Auth;
use 5.10.1;
use strict; use strict;
use fields qw( use fields qw(
_info_getter _info_getter
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Auth::Login; package Bugzilla::Auth::Login;
use 5.10.1;
use strict; use strict;
use fields qw(); use fields qw();
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Auth::Login::CGI; package Bugzilla::Auth::Login::CGI;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Auth::Login); use base qw(Bugzilla::Auth::Login);
use constant user_can_create_account => 1; use constant user_can_create_account => 1;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Auth::Login::Cookie; package Bugzilla::Auth::Login::Cookie;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Auth::Login); use base qw(Bugzilla::Auth::Login);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Auth::Login::Env; package Bugzilla::Auth::Login::Env;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Auth::Login); use base qw(Bugzilla::Auth::Login);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Auth::Login::Stack; package Bugzilla::Auth::Login::Stack;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Auth::Login); use base qw(Bugzilla::Auth::Login);
use fields qw( use fields qw(
_stack _stack
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Auth::Persist::Cookie; package Bugzilla::Auth::Persist::Cookie;
use 5.10.1;
use strict; use strict;
use fields qw(); use fields qw();
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Auth::Verify; package Bugzilla::Auth::Verify;
use 5.10.1;
use strict; use strict;
use fields qw(); use fields qw();
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Auth::Verify::DB; package Bugzilla::Auth::Verify::DB;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Auth::Verify); use base qw(Bugzilla::Auth::Verify);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Auth::Verify::LDAP; package Bugzilla::Auth::Verify::LDAP;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Auth::Verify); use base qw(Bugzilla::Auth::Verify);
use fields qw( use fields qw(
ldap ldap
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Auth::Verify::RADIUS; package Bugzilla::Auth::Verify::RADIUS;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Auth::Verify); use base qw(Bugzilla::Auth::Verify);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Auth::Verify::Stack; package Bugzilla::Auth::Verify::Stack;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Auth::Verify); use base qw(Bugzilla::Auth::Verify);
use fields qw( use fields qw(
_stack _stack
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Bug; package Bugzilla::Bug;
use 5.10.1;
use strict; use strict;
use Bugzilla::Attachment; use Bugzilla::Attachment;
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::BugMail; package Bugzilla::BugMail;
use 5.10.1;
use strict;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::User; use Bugzilla::User;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl; package Bugzilla::BugUrl;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
use Bugzilla::Util; use Bugzilla::Util;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::Bugzilla; package Bugzilla::BugUrl::Bugzilla;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl); use base qw(Bugzilla::BugUrl);
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::Bugzilla::Local; package Bugzilla::BugUrl::Bugzilla::Local;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl::Bugzilla); use base qw(Bugzilla::BugUrl::Bugzilla);
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::Debian; package Bugzilla::BugUrl::Debian;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl); use base qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::GitHub; package Bugzilla::BugUrl::GitHub;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl); use base qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::Google; package Bugzilla::BugUrl::Google;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl); use base qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::JIRA; package Bugzilla::BugUrl::JIRA;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl); use base qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::Launchpad; package Bugzilla::BugUrl::Launchpad;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl); use base qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::MantisBT; package Bugzilla::BugUrl::MantisBT;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl); use base qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::SourceForge; package Bugzilla::BugUrl::SourceForge;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl); use base qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::BugUrl::Trac; package Bugzilla::BugUrl::Trac;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::BugUrl); use base qw(Bugzilla::BugUrl);
############################### ###############################
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::CGI; package Bugzilla::CGI;
use 5.10.1;
use strict; use strict;
use base qw(CGI); use base qw(CGI);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
# This module represents a chart. # This module represents a chart.
# #
# Note that it is perfectly legal for the 'lines' member variable of this # Note that it is perfectly legal for the 'lines' member variable of this
...@@ -15,6 +13,9 @@ use strict; ...@@ -15,6 +13,9 @@ use strict;
# the same points. # the same points.
package Bugzilla::Chart; package Bugzilla::Chart;
use 5.10.1;
use strict;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Util; use Bugzilla::Util;
use Bugzilla::Series; use Bugzilla::Series;
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Classification; package Bugzilla::Classification;
use 5.10.1;
use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Field; use Bugzilla::Field;
use Bugzilla::Util; use Bugzilla::Util;
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Comment; package Bugzilla::Comment;
use 5.10.1;
use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
use Bugzilla::Attachment; use Bugzilla::Attachment;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Component; package Bugzilla::Component;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object); use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config; package Bugzilla::Config;
use 5.10.1;
use strict; use strict;
use base qw(Exporter); use base qw(Exporter);
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::Admin; package Bugzilla::Config::Admin;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Config::Advanced; package Bugzilla::Config::Advanced;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::Attachment; package Bugzilla::Config::Attachment;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::Auth; package Bugzilla::Config::Auth;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::BugChange; package Bugzilla::Config::BugChange;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::BugFields; package Bugzilla::Config::BugFields;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::Common; package Bugzilla::Config::Common;
use 5.10.1;
use strict; use strict;
use Email::Address; use Email::Address;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::Core; package Bugzilla::Config::Core;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::DependencyGraph; package Bugzilla::Config::DependencyGraph;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Config::General; package Bugzilla::Config::General;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
our $sortkey = 150; our $sortkey = 150;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::GroupSecurity; package Bugzilla::Config::GroupSecurity;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::LDAP; package Bugzilla::Config::LDAP;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::MTA; package Bugzilla::Config::MTA;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::PatchViewer; package Bugzilla::Config::PatchViewer;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::Query; package Bugzilla::Config::Query;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::RADIUS; package Bugzilla::Config::RADIUS;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::ShadowDB; package Bugzilla::Config::ShadowDB;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Config::UserMatch; package Bugzilla::Config::UserMatch;
use 5.10.1;
use strict; use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Constants; package Bugzilla::Constants;
use 5.10.1;
use strict; use strict;
use base qw(Exporter); use base qw(Exporter);
# For bz_locations # For bz_locations
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::DB; package Bugzilla::DB;
use 5.10.1;
use strict; use strict;
use DBI; use DBI;
......
...@@ -20,7 +20,10 @@ For interface details see L<Bugzilla::DB> and L<DBI>. ...@@ -20,7 +20,10 @@ For interface details see L<Bugzilla::DB> and L<DBI>.
=cut =cut
package Bugzilla::DB::Mysql; package Bugzilla::DB::Mysql;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::DB); use base qw(Bugzilla::DB);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -20,7 +20,10 @@ For interface details see L<Bugzilla::DB> and L<DBI>. ...@@ -20,7 +20,10 @@ For interface details see L<Bugzilla::DB> and L<DBI>.
=cut =cut
package Bugzilla::DB::Oracle; package Bugzilla::DB::Oracle;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::DB); use base qw(Bugzilla::DB);
use DBD::Oracle; use DBD::Oracle;
...@@ -706,6 +709,10 @@ sub _get_create_trigger_ddl { ...@@ -706,6 +709,10 @@ sub _get_create_trigger_ddl {
############################################################################ ############################################################################
package Bugzilla::DB::Oracle::st; package Bugzilla::DB::Oracle::st;
use 5.10.1;
use strict;
use base qw(DBI::st); use base qw(DBI::st);
sub fetchrow_arrayref { sub fetchrow_arrayref {
......
...@@ -21,6 +21,7 @@ For interface details see L<Bugzilla::DB> and L<DBI>. ...@@ -21,6 +21,7 @@ For interface details see L<Bugzilla::DB> and L<DBI>.
package Bugzilla::DB::Pg; package Bugzilla::DB::Pg;
use 5.10.1;
use strict; use strict;
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -15,7 +15,9 @@ package Bugzilla::DB::Schema; ...@@ -15,7 +15,9 @@ package Bugzilla::DB::Schema;
# #
########################################################################### ###########################################################################
use 5.10.1;
use strict; use strict;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Hook; use Bugzilla::Hook;
use Bugzilla::Util; use Bugzilla::Util;
......
...@@ -13,7 +13,9 @@ package Bugzilla::DB::Schema::Mysql; ...@@ -13,7 +13,9 @@ package Bugzilla::DB::Schema::Mysql;
# #
############################################################################### ###############################################################################
use 5.10.1;
use strict; use strict;
use Bugzilla::Error; use Bugzilla::Error;
use base qw(Bugzilla::DB::Schema); use base qw(Bugzilla::DB::Schema);
......
...@@ -13,6 +13,7 @@ package Bugzilla::DB::Schema::Oracle; ...@@ -13,6 +13,7 @@ package Bugzilla::DB::Schema::Oracle;
# #
############################################################################### ###############################################################################
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::DB::Schema); use base qw(Bugzilla::DB::Schema);
......
...@@ -13,7 +13,9 @@ package Bugzilla::DB::Schema::Pg; ...@@ -13,7 +13,9 @@ package Bugzilla::DB::Schema::Pg;
# #
############################################################################### ###############################################################################
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::DB::Schema); use base qw(Bugzilla::DB::Schema);
use Storable qw(dclone); use Storable qw(dclone);
......
...@@ -5,8 +5,11 @@ ...@@ -5,8 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::DB::Schema::Sqlite; package Bugzilla::DB::Schema::Sqlite;
use 5.10.1;
use strict;
use base qw(Bugzilla::DB::Schema); use base qw(Bugzilla::DB::Schema);
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -5,8 +5,11 @@ ...@@ -5,8 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::DB::Sqlite; package Bugzilla::DB::Sqlite;
use 5.10.1;
use strict;
use base qw(Bugzilla::DB); use base qw(Bugzilla::DB);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
package Bugzilla::Error; package Bugzilla::Error;
use 5.10.1;
use strict; use strict;
use base qw(Exporter); use base qw(Exporter);
@Bugzilla::Error::EXPORT = qw(ThrowCodeError ThrowTemplateError ThrowUserError); @Bugzilla::Error::EXPORT = qw(ThrowCodeError ThrowTemplateError ThrowUserError);
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension; package Bugzilla::Extension;
use 5.10.1;
use strict; use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -57,6 +57,7 @@ in addition to what is documented here. ...@@ -57,6 +57,7 @@ in addition to what is documented here.
package Bugzilla::Field; package Bugzilla::Field;
use 5.10.1;
use strict; use strict;
use base qw(Exporter Bugzilla::Object); use base qw(Exporter Bugzilla::Object);
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Field::Choice; package Bugzilla::Field::Choice;
use 5.10.1;
use strict;
use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object); use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
use Bugzilla::Config qw(SetParam write_params); use Bugzilla::Config qw(SetParam write_params);
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Field::ChoiceInterface; package Bugzilla::Field::ChoiceInterface;
use 5.10.1;
use strict; use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Flag; package Bugzilla::Flag;
use 5.10.1;
use strict;
=head1 NAME =head1 NAME
Bugzilla::Flag - A module to deal with Bugzilla flag values. Bugzilla::Flag - A module to deal with Bugzilla flag values.
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::FlagType; package Bugzilla::FlagType;
use 5.10.1;
use strict;
=head1 NAME =head1 NAME
Bugzilla::FlagType - A module to deal with Bugzilla flag types. Bugzilla::FlagType - A module to deal with Bugzilla flag types.
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Group; package Bugzilla::Group;
use 5.10.1;
use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Hook; package Bugzilla::Hook;
use 5.10.1;
use strict; use strict;
sub process { sub process {
......
...@@ -15,6 +15,7 @@ package Bugzilla::Install; ...@@ -15,6 +15,7 @@ package Bugzilla::Install;
# make those assumptions, then it should go into one of the # make those assumptions, then it should go into one of the
# packages under the Bugzilla::Install namespace. # packages under the Bugzilla::Install namespace.
use 5.10.1;
use strict; use strict;
use Bugzilla::Component; use Bugzilla::Component;
...@@ -25,7 +26,7 @@ use Bugzilla::Group; ...@@ -25,7 +26,7 @@ use Bugzilla::Group;
use Bugzilla::Product; use Bugzilla::Product;
use Bugzilla::User; use Bugzilla::User;
use Bugzilla::User::Setting; use Bugzilla::User::Setting;
use Bugzilla::Util qw(get_text say); use Bugzilla::Util qw(get_text);
use Bugzilla::Version; use Bugzilla::Version;
use constant STATUS_WORKFLOW => ( use constant STATUS_WORKFLOW => (
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Install::CPAN; package Bugzilla::Install::CPAN;
use 5.10.1;
use strict; use strict;
use base qw(Exporter); use base qw(Exporter);
our @EXPORT = qw( our @EXPORT = qw(
BZ_LIB BZ_LIB
......
...@@ -10,6 +10,7 @@ package Bugzilla::Install::DB; ...@@ -10,6 +10,7 @@ package Bugzilla::Install::DB;
# NOTE: This package may "use" any modules that it likes, # NOTE: This package may "use" any modules that it likes,
# localconfig is available, and params are up to date. # localconfig is available, and params are up to date.
use 5.10.1;
use strict; use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -15,6 +15,7 @@ package Bugzilla::Install::Filesystem; ...@@ -15,6 +15,7 @@ package Bugzilla::Install::Filesystem;
# * Files do not have the correct permissions. # * Files do not have the correct permissions.
# * The database does not exist. # * The database does not exist.
use 5.10.1;
use strict; use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -15,6 +15,7 @@ package Bugzilla::Install::Localconfig; ...@@ -15,6 +15,7 @@ package Bugzilla::Install::Localconfig;
# * Files do not have the correct permissions # * Files do not have the correct permissions
# * The database is not up to date # * The database is not up to date
use 5.10.1;
use strict; use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -13,6 +13,7 @@ package Bugzilla::Install::Requirements; ...@@ -13,6 +13,7 @@ package Bugzilla::Install::Requirements;
# Subroutines may "require" and "import" from modules, but they # Subroutines may "require" and "import" from modules, but they
# MUST NOT "use." # MUST NOT "use."
use 5.10.1;
use strict; use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -11,6 +11,7 @@ package Bugzilla::Install::Util; ...@@ -11,6 +11,7 @@ package Bugzilla::Install::Util;
# module may require *only* Bugzilla::Constants and built-in # module may require *only* Bugzilla::Constants and built-in
# perl modules. # perl modules.
use 5.10.1;
use strict; use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Job::Mailer; package Bugzilla::Job::Mailer;
use 5.10.1;
use strict; use strict;
use Bugzilla::Mailer; use Bugzilla::Mailer;
BEGIN { eval "use base qw(TheSchwartz::Worker)"; } BEGIN { eval "use base qw(TheSchwartz::Worker)"; }
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::JobQueue; package Bugzilla::JobQueue;
use 5.10.1;
use strict; use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -11,7 +11,9 @@ ...@@ -11,7 +11,9 @@
package Bugzilla::JobQueue::Runner; package Bugzilla::JobQueue::Runner;
use 5.10.1;
use strict; use strict;
use Cwd qw(abs_path); use Cwd qw(abs_path);
use File::Basename; use File::Basename;
use File::Copy; use File::Copy;
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Keyword; package Bugzilla::Keyword;
use 5.10.1;
use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Mailer; package Bugzilla::Mailer;
use 5.10.1;
use strict; use strict;
use base qw(Exporter); use base qw(Exporter);
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Migrate; package Bugzilla::Migrate;
use 5.10.1;
use strict; use strict;
use Bugzilla::Attachment; use Bugzilla::Attachment;
...@@ -16,7 +18,7 @@ use Bugzilla::Error; ...@@ -16,7 +18,7 @@ use Bugzilla::Error;
use Bugzilla::Install::Requirements (); use Bugzilla::Install::Requirements ();
use Bugzilla::Install::Util qw(indicate_progress); use Bugzilla::Install::Util qw(indicate_progress);
use Bugzilla::Product; use Bugzilla::Product;
use Bugzilla::Util qw(get_text trim generate_random_password say); use Bugzilla::Util qw(get_text trim generate_random_password);
use Bugzilla::User (); use Bugzilla::User ();
use Bugzilla::Status (); use Bugzilla::Status ();
use Bugzilla::Version; use Bugzilla::Version;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Migrate::Gnats; package Bugzilla::Migrate::Gnats;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Migrate); use base qw(Bugzilla::Migrate);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Milestone; package Bugzilla::Milestone;
use 5.10.1;
use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Object; package Bugzilla::Object;
use 5.10.1;
use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Hook; use Bugzilla::Hook;
use Bugzilla::Util; use Bugzilla::Util;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Product; package Bugzilla::Product;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object); use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::RNG; package Bugzilla::RNG;
use 5.10.1;
use strict; use strict;
use base qw(Exporter); use base qw(Exporter);
use Bugzilla::Constants qw(ON_WINDOWS); use Bugzilla::Constants qw(ON_WINDOWS);
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Report; package Bugzilla::Report;
use 5.10.1;
use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
use Bugzilla::CGI; use Bugzilla::CGI;
......
...@@ -5,9 +5,11 @@ ...@@ -5,9 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Search;
use 5.10.1;
use strict; use strict;
package Bugzilla::Search;
use base qw(Exporter); use base qw(Exporter);
@Bugzilla::Search::EXPORT = qw( @Bugzilla::Search::EXPORT = qw(
IsValidQueryType IsValidQueryType
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Search::Clause; package Bugzilla::Search::Clause;
use 5.10.1;
use strict; use strict;
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Search::Condition; package Bugzilla::Search::Condition;
use 5.10.1;
use strict; use strict;
use base qw(Exporter); use base qw(Exporter);
our @EXPORT_OK = qw(condition); our @EXPORT_OK = qw(condition);
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
package Bugzilla::Search::Quicksearch; package Bugzilla::Search::Quicksearch;
# Make it harder for us to do dangerous things in Perl. use 5.10.1;
use strict; use strict;
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Search::Recent; package Bugzilla::Search::Recent;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Search::Saved; package Bugzilla::Search::Saved;
use 5.10.1;
use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
use Bugzilla::CGI; use Bugzilla::CGI;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Send::Sendmail; package Bugzilla::Send::Sendmail;
use 5.10.1;
use strict; use strict;
use base qw(Email::Send::Sendmail); use base qw(Email::Send::Sendmail);
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
# This module implements a series - a set of data to be plotted on a chart. # This module implements a series - a set of data to be plotted on a chart.
# #
# This Series is in the database if and only if self->{'series_id'} is defined. # This Series is in the database if and only if self->{'series_id'} is defined.
...@@ -16,6 +14,9 @@ use strict; ...@@ -16,6 +14,9 @@ use strict;
package Bugzilla::Series; package Bugzilla::Series;
use 5.10.1;
use strict;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Util; use Bugzilla::Util;
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Status; package Bugzilla::Status;
use Bugzilla::Error; use 5.10.1;
use strict;
# This subclasses Bugzilla::Field::Choice instead of implementing # This subclasses Bugzilla::Field::Choice instead of implementing
# ChoiceInterface, because a bug status literally is a special type # ChoiceInterface, because a bug status literally is a special type
# of Field::Choice, not just an object that happens to have the same # of Field::Choice, not just an object that happens to have the same
...@@ -23,6 +23,8 @@ use base qw(Bugzilla::Field::Choice Exporter); ...@@ -23,6 +23,8 @@ use base qw(Bugzilla::Field::Choice Exporter);
closed_bug_statuses closed_bug_statuses
); );
use Bugzilla::Error;
################################ ################################
##### Initialization ##### ##### Initialization #####
################################ ################################
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
package Bugzilla::Template; package Bugzilla::Template;
use 5.10.1;
use strict; use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -7,7 +7,10 @@ ...@@ -7,7 +7,10 @@
# This exists to implement the template-before_process hook. # This exists to implement the template-before_process hook.
package Bugzilla::Template::Context; package Bugzilla::Template::Context;
use 5.10.1;
use strict; use strict;
use base qw(Template::Context); use base qw(Template::Context);
use Bugzilla::Hook; use Bugzilla::Hook;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Template::Plugin::Bugzilla; package Bugzilla::Template::Plugin::Bugzilla;
use 5.10.1;
use strict; use strict;
use base qw(Template::Plugin); use base qw(Template::Plugin);
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Template::Plugin::Hook; package Bugzilla::Template::Plugin::Hook;
use 5.10.1;
use strict; use strict;
use base qw(Template::Plugin); use base qw(Template::Plugin);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -5,16 +5,11 @@ ...@@ -5,16 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
################################################################################ package Bugzilla::Token;
# Module Initialization
################################################################################
# Make it harder for us to do dangerous things in Perl. use 5.10.1;
use strict; use strict;
# Bundle the functions in this file together into the "Bugzilla::Token" package.
package Bugzilla::Token;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Mailer; use Bugzilla::Mailer;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Update; package Bugzilla::Update;
use 5.10.1;
use strict; use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -5,16 +5,11 @@ ...@@ -5,16 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
################################################################################ package Bugzilla::User;
# Module Initialization
################################################################################
# Make it harder for us to do dangerous things in Perl. use 5.10.1;
use strict; use strict;
# This module implements utilities for dealing with Bugzilla users.
package Bugzilla::User;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Util; use Bugzilla::Util;
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -8,7 +8,9 @@ ...@@ -8,7 +8,9 @@
package Bugzilla::User::Setting; package Bugzilla::User::Setting;
use 5.10.1;
use strict; use strict;
use base qw(Exporter); use base qw(Exporter);
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::User::Setting::Lang; package Bugzilla::User::Setting::Lang;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::User::Setting); use base qw(Bugzilla::User::Setting);
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
package Bugzilla::User::Setting::Skin; package Bugzilla::User::Setting::Skin;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::User::Setting); use base qw(Bugzilla::User::Setting);
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::User::Setting::Timezone; package Bugzilla::User::Setting::Timezone;
use 5.10.1;
use strict; use strict;
use DateTime::TimeZone; use DateTime::TimeZone;
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
package Bugzilla::UserAgent; package Bugzilla::UserAgent;
use 5.10.1;
use strict; use strict;
use base qw(Exporter); use base qw(Exporter);
our @EXPORT = qw(detect_platform detect_op_sys); our @EXPORT = qw(detect_platform detect_op_sys);
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
package Bugzilla::Util; package Bugzilla::Util;
use 5.10.1;
use strict; use strict;
use feature ':5.10';
use base qw(Exporter); use base qw(Exporter);
@Bugzilla::Util::EXPORT = qw(trick_taint detaint_natural detaint_signed @Bugzilla::Util::EXPORT = qw(trick_taint detaint_natural detaint_signed
...@@ -16,7 +16,7 @@ use base qw(Exporter); ...@@ -16,7 +16,7 @@ use base qw(Exporter);
css_class_quote html_light_quote css_class_quote html_light_quote
i_am_cgi correct_urlbase remote_ip validate_ip i_am_cgi correct_urlbase remote_ip validate_ip
do_ssl_redirect_if_required use_attachbase do_ssl_redirect_if_required use_attachbase
diff_arrays on_main_db say diff_arrays on_main_db
trim wrap_hard wrap_comment find_wrap_point trim wrap_hard wrap_comment find_wrap_point
format_time validate_date validate_time datetime_from format_time validate_date validate_time datetime_from
is_7bit_clean bz_crypt generate_random_password is_7bit_clean bz_crypt generate_random_password
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Version; package Bugzilla::Version;
use 5.10.1;
use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
use Bugzilla::Install::Util qw(vers_cmp); use Bugzilla::Install::Util qw(vers_cmp);
......
...@@ -8,7 +8,10 @@ ...@@ -8,7 +8,10 @@
# This is the base class for $self in WebService method calls. For the # This is the base class for $self in WebService method calls. For the
# actual RPC server, see Bugzilla::WebService::Server and its subclasses. # actual RPC server, see Bugzilla::WebService::Server and its subclasses.
package Bugzilla::WebService; package Bugzilla::WebService;
use 5.10.1;
use strict; use strict;
use Bugzilla::WebService::Server; use Bugzilla::WebService::Server;
# Used by the JSON-RPC server to convert incoming date fields apprpriately. # Used by the JSON-RPC server to convert incoming date fields apprpriately.
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
package Bugzilla::WebService::Bug; package Bugzilla::WebService::Bug;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::WebService); use base qw(Bugzilla::WebService);
use Bugzilla::Comment; use Bugzilla::Comment;
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
package Bugzilla::WebService::Bugzilla; package Bugzilla::WebService::Bugzilla;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::WebService); use base qw(Bugzilla::WebService);
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Util qw(datetime_from); use Bugzilla::Util qw(datetime_from);
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
package Bugzilla::WebService::Constants; package Bugzilla::WebService::Constants;
use 5.10.1;
use strict; use strict;
use base qw(Exporter); use base qw(Exporter);
our @EXPORT = qw( our @EXPORT = qw(
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
package Bugzilla::WebService::Group; package Bugzilla::WebService::Group;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::WebService); use base qw(Bugzilla::WebService);
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
package Bugzilla::WebService::Product; package Bugzilla::WebService::Product;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::WebService); use base qw(Bugzilla::WebService);
use Bugzilla::Product; use Bugzilla::Product;
use Bugzilla::User; use Bugzilla::User;
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::WebService::Server; package Bugzilla::WebService::Server;
use 5.10.1;
use strict; use strict;
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
package Bugzilla::WebService::Server::JSONRPC; package Bugzilla::WebService::Server::JSONRPC;
use 5.10.1;
use strict; use strict;
use Bugzilla::WebService::Server; use Bugzilla::WebService::Server;
BEGIN { BEGIN {
our @ISA = qw(Bugzilla::WebService::Server); our @ISA = qw(Bugzilla::WebService::Server);
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
package Bugzilla::WebService::Server::XMLRPC; package Bugzilla::WebService::Server::XMLRPC;
use 5.10.1;
use strict; use strict;
use XMLRPC::Transport::HTTP; use XMLRPC::Transport::HTTP;
use Bugzilla::WebService::Server; use Bugzilla::WebService::Server;
if ($ENV{MOD_PERL}) { if ($ENV{MOD_PERL}) {
...@@ -66,7 +68,10 @@ sub handle_login { ...@@ -66,7 +68,10 @@ sub handle_login {
# This exists to validate input parameters (which XMLRPC::Lite doesn't do) # This exists to validate input parameters (which XMLRPC::Lite doesn't do)
# and also, in some cases, to more-usefully decode them. # and also, in some cases, to more-usefully decode them.
package Bugzilla::XMLRPC::Deserializer; package Bugzilla::XMLRPC::Deserializer;
use 5.10.1;
use strict; use strict;
# We can't use "use base" because XMLRPC::Serializer doesn't return # We can't use "use base" because XMLRPC::Serializer doesn't return
# a true value. # a true value.
use XMLRPC::Lite; use XMLRPC::Lite;
...@@ -161,7 +166,10 @@ sub _validation_subs { ...@@ -161,7 +166,10 @@ sub _validation_subs {
1; 1;
package Bugzilla::XMLRPC::SOM; package Bugzilla::XMLRPC::SOM;
use 5.10.1;
use strict; use strict;
use XMLRPC::Lite; use XMLRPC::Lite;
our @ISA = qw(XMLRPC::SOM); our @ISA = qw(XMLRPC::SOM);
use Bugzilla::WebService::Util qw(taint_data); use Bugzilla::WebService::Util qw(taint_data);
...@@ -184,8 +192,11 @@ sub paramsin { ...@@ -184,8 +192,11 @@ sub paramsin {
# This package exists to fix a UTF-8 bug in SOAP::Lite. # This package exists to fix a UTF-8 bug in SOAP::Lite.
# See http://rt.cpan.org/Public/Bug/Display.html?id=32952. # See http://rt.cpan.org/Public/Bug/Display.html?id=32952.
package Bugzilla::XMLRPC::Serializer; package Bugzilla::XMLRPC::Serializer;
use Scalar::Util qw(blessed);
use 5.10.1;
use strict; use strict;
use Scalar::Util qw(blessed);
# We can't use "use base" because XMLRPC::Serializer doesn't return # We can't use "use base" because XMLRPC::Serializer doesn't return
# a true value. # a true value.
use XMLRPC::Lite; use XMLRPC::Lite;
......
...@@ -7,10 +7,11 @@ ...@@ -7,10 +7,11 @@
package Bugzilla::WebService::User; package Bugzilla::WebService::User;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::WebService); use base qw(Bugzilla::WebService);
use Bugzilla;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Group; use Bugzilla::Group;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::WebService::Util; package Bugzilla::WebService::Util;
use 5.10.1;
use strict; use strict;
use base qw(Exporter); use base qw(Exporter);
# We have to "require", not "use" this, because otherwise it tries to # We have to "require", not "use" this, because otherwise it tries to
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Whine; package Bugzilla::Whine;
use 5.10.1;
use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package Bugzilla::Whine::Query; package Bugzilla::Whine::Query;
use 5.10.1;
use strict; use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use strict;
package Bugzilla::Whine::Schedule; package Bugzilla::Whine::Schedule;
use 5.10.1;
use strict;
use base qw(Bugzilla::Object); use base qw(Bugzilla::Object);
use Bugzilla::Constants; use Bugzilla::Constants;
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -6,13 +6,8 @@ ...@@ -6,13 +6,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
################################################################################ use 5.10.1;
# Script Initialization
################################################################################
# Make it harder for us to do dangerous things in Perl.
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
...@@ -24,11 +19,9 @@ use Bugzilla::FlagType; ...@@ -24,11 +19,9 @@ use Bugzilla::FlagType;
use Bugzilla::User; use Bugzilla::User;
use Bugzilla::Util; use Bugzilla::Util;
use Bugzilla::Bug; use Bugzilla::Bug;
use Bugzilla::Field;
use Bugzilla::Attachment; use Bugzilla::Attachment;
use Bugzilla::Attachment::PatchReader; use Bugzilla::Attachment::PatchReader;
use Bugzilla::Token; use Bugzilla::Token;
use Bugzilla::Keyword;
use Encode qw(encode find_encoding); use Encode qw(encode find_encoding);
...@@ -40,10 +33,6 @@ local our $cgi = Bugzilla->cgi; ...@@ -40,10 +33,6 @@ local our $cgi = Bugzilla->cgi;
local our $template = Bugzilla->template; local our $template = Bugzilla->template;
local our $vars = {}; local our $vars = {};
################################################################################
# Main Body Execution
################################################################################
# All calls to this script should contain an "action" variable whose # All calls to this script should contain an "action" variable whose
# value determines what the user wants to do. The code below checks # value determines what the user wants to do. The code below checks
# the value of that variable and runs the appropriate code. If none is # the value of that variable and runs the appropriate code. If none is
......
...@@ -6,13 +6,8 @@ ...@@ -6,13 +6,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
################################################################################ use 5.10.1;
# Script Initialization
################################################################################
# Make it harder for us to do dangerous things in Perl.
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
# Bonus: # Bonus:
# Offer subscription when you get a "series already exists" error? # Offer subscription when you get a "series already exists" error?
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
...@@ -37,7 +38,6 @@ use Bugzilla::Error; ...@@ -37,7 +38,6 @@ use Bugzilla::Error;
use Bugzilla::Util; use Bugzilla::Util;
use Bugzilla::Chart; use Bugzilla::Chart;
use Bugzilla::Series; use Bugzilla::Series;
use Bugzilla::User;
use Bugzilla::Token; use Bugzilla::Token;
# For most scripts we don't make $cgi and $template global variables. But # For most scripts we don't make $cgi and $template global variables. But
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
...@@ -15,7 +16,6 @@ use Bugzilla::Util; ...@@ -15,7 +16,6 @@ use Bugzilla::Util;
use Bugzilla::CGI; use Bugzilla::CGI;
use Bugzilla::Search::Saved; use Bugzilla::Search::Saved;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::User;
use Bugzilla::Token; use Bugzilla::Token;
use Storable qw(dclone); use Storable qw(dclone);
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -6,13 +6,8 @@ ...@@ -6,13 +6,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
################################################################################ use 5.10.1;
# Script Initialization
################################################################################
# Make it harder for us to do dangerous things in Perl.
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
package Bugzilla; package Bugzilla;
use 5.10.1;
use strict; use strict;
####################################################################### #######################################################################
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::User;
use Bugzilla::Keyword; use Bugzilla::Keyword;
my $user = Bugzilla->login(); my $user = Bugzilla->login();
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
package Pod::Simple::HTML::Bugzilla; package Pod::Simple::HTML::Bugzilla;
use 5.10.1;
use strict; use strict;
use base qw(Pod::Simple::HTML); use base qw(Pod::Simple::HTML);
# Without this constant, HTMLBatch will throw undef warnings. # Without this constant, HTMLBatch will throw undef warnings.
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
package Pod::Simple::HTMLBatch::Bugzilla; package Pod::Simple::HTMLBatch::Bugzilla;
use 5.10.1;
use strict; use strict;
use base qw(Pod::Simple::HTMLBatch); use base qw(Pod::Simple::HTMLBatch);
# This is the same hack that HTMLBatch does to "import" this subroutine. # This is the same hack that HTMLBatch does to "import" this subroutine.
......
...@@ -8,7 +8,9 @@ ...@@ -8,7 +8,9 @@
# This script compiles all the documentation. # This script compiles all the documentation.
use 5.10.1;
use strict; use strict;
use Cwd; use Cwd;
# We need to be in this directory to use our libraries. # We need to be in this directory to use our libraries.
...@@ -87,8 +89,8 @@ sub MakeDocs { ...@@ -87,8 +89,8 @@ sub MakeDocs {
my ($name, $cmdline) = @_; my ($name, $cmdline) = @_;
print "Creating $name documentation ...\n" if defined $name; say "Creating $name documentation ..." if defined $name;
print "$cmdline\n\n"; say "$cmdline\n";
system $cmdline; system $cmdline;
print "\n"; print "\n";
...@@ -96,7 +98,7 @@ sub MakeDocs { ...@@ -96,7 +98,7 @@ sub MakeDocs {
sub make_pod { sub make_pod {
print "Creating API documentation...\n"; say "Creating API documentation...";
my $converter = Pod::Simple::HTMLBatch::Bugzilla->new; my $converter = Pod::Simple::HTMLBatch::Bugzilla->new;
# Don't output progress information. # Don't output progress information.
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -6,15 +6,10 @@ ...@@ -6,15 +6,10 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
################################################################################ use 5.10.1;
# Script Initialization
################################################################################
# Make it harder for us to do dangerous things in Perl.
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
# Use Bugzilla's flag modules for handling flag types.
use Bugzilla; use Bugzilla;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Flag; use Bugzilla::Flag;
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
# or select boxes. It is largely a copy of editmilestones.cgi, but # or select boxes. It is largely a copy of editmilestones.cgi, but
# with some cleanup. # with some cleanup.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
# Script Initialization # Script Initialization
################################################################################ ################################################################################
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use warnings; use warnings;
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
# #
############################################################################## ##############################################################################
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -6,8 +6,10 @@ ...@@ -6,8 +6,10 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Error; use Bugzilla::Error;
...@@ -54,7 +56,7 @@ foreach my $template_file (keys %create_files) { ...@@ -54,7 +56,7 @@ foreach my $template_file (keys %create_files) {
close($fh); close($fh);
} }
print get_text('extension_created', $vars), "\n"; say get_text('extension_created', $vars);
__END__ __END__
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
# a new bug into bugzilla. Everything before the beginning <?xml line # a new bug into bugzilla. Everything before the beginning <?xml line
# is removed so you can pipe in email messages. # is removed so you can pipe in email messages.
use 5.10.1;
use strict; use strict;
##################################################################### #####################################################################
......
...@@ -6,14 +6,8 @@ ...@@ -6,14 +6,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
############################################################################### use 5.10.1;
# Script Initialization
###############################################################################
# Make it harder for us to do dangerous things in Perl.
use strict; use strict;
# Include the Bugzilla CGI and general utility library.
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
...@@ -37,10 +31,6 @@ if ($cgi->param('logout')) { ...@@ -37,10 +31,6 @@ if ($cgi->param('logout')) {
$cgi->delete('logout'); $cgi->delete('logout');
} }
###############################################################################
# Main Body Execution
###############################################################################
# Return the appropriate HTTP response headers. # Return the appropriate HTTP response headers.
print $cgi->header(); print $cgi->header();
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use warnings; use warnings;
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use Cwd qw(abs_path); use Cwd qw(abs_path);
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use File::Basename; use File::Basename;
BEGIN { chdir dirname($0); } BEGIN { chdir dirname($0); }
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
package Bugzilla::ModPerl; package Bugzilla::ModPerl;
use 5.10.1;
use strict; use strict;
use warnings; use warnings;
...@@ -107,7 +109,10 @@ foreach my $file (glob "$cgi_path/*.cgi") { ...@@ -107,7 +109,10 @@ foreach my $file (glob "$cgi_path/*.cgi") {
} }
package Bugzilla::ModPerl::ResponseHandler; package Bugzilla::ModPerl::ResponseHandler;
use 5.10.1;
use strict; use strict;
use base qw(ModPerl::Registry); use base qw(ModPerl::Registry);
use Bugzilla; use Bugzilla;
...@@ -132,7 +137,10 @@ sub handler : method { ...@@ -132,7 +137,10 @@ sub handler : method {
package Bugzilla::ModPerl::CleanupHandler; package Bugzilla::ModPerl::CleanupHandler;
use 5.10.1;
use strict; use strict;
use Apache2::Const -compile => qw(OK); use Apache2::Const -compile => qw(OK);
sub handler { sub handler {
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
# a content-type, e.g. html. # a content-type, e.g. html.
############################################################################### ###############################################################################
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
...@@ -17,11 +18,7 @@ use Bugzilla::Util; ...@@ -17,11 +18,7 @@ use Bugzilla::Util;
use Bugzilla::Error; use Bugzilla::Error;
use Bugzilla::Bug; use Bugzilla::Bug;
use Bugzilla::User; use Bugzilla::User;
use Bugzilla::Field;
use Bugzilla::Hook; use Bugzilla::Hook;
use Bugzilla::Product;
use Bugzilla::Component;
use Bugzilla::Keyword;
use Bugzilla::Token; use Bugzilla::Token;
use Bugzilla::Flag; use Bugzilla::Flag;
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
# 3) If we are processing just the one id, then it is stored in @idlist for # 3) If we are processing just the one id, then it is stored in @idlist for
# later processing. # later processing.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -6,13 +6,8 @@ ...@@ -6,13 +6,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
################################################################################ use 5.10.1;
# Script Initialization
################################################################################
# Make it harder for us to do dangerous things in Perl.
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
...@@ -34,10 +29,6 @@ my $action = $cgi->param('action') || ''; ...@@ -34,10 +29,6 @@ my $action = $cgi->param('action') || '';
print $cgi->header(); print $cgi->header();
################################################################################
# Main Body Execution
################################################################################
my $fields; my $fields;
$fields->{'requester'}->{'type'} = 'single'; $fields->{'requester'}->{'type'} = 'single';
# If the user doesn't restrict his search to requests from the wind # If the user doesn't restrict his search to requests from the wind
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
# Make it harder for us to do dangerous things in Perl. use 5.10.1;
use diagnostics; use diagnostics;
use strict; use strict;
use lib qw(lib); use lib qw(lib);
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use File::Temp; use File::Temp;
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Date::Parse; # strptime use Date::Parse; # strptime
......
...@@ -16,7 +16,7 @@ use lib 't'; ...@@ -16,7 +16,7 @@ use lib 't';
use Support::Files; use Support::Files;
use Test::More tests => (scalar(@Support::Files::testitems) * 3); use Test::More tests => (scalar(@Support::Files::testitems) * 4);
my @testitems = @Support::Files::testitems; # get the files to test. my @testitems = @Support::Files::testitems; # get the files to test.
...@@ -84,6 +84,28 @@ foreach my $file (@testitems) { ...@@ -84,6 +84,28 @@ foreach my $file (@testitems) {
} }
} }
foreach my $file (@testitems) {
my $found_use_feature = 0;
$file =~ s/\s.*$//; # nuke everything after the first space (#comment)
next if (!$file); # skip null entries
if (! open (FILE, $file)) {
ok(0,"could not open $file --WARNING");
next;
}
while (my $file_line = <FILE>) {
if ($file_line =~ m/^\s*use 5.10.1/) {
$found_use_feature = 1;
last;
}
}
close (FILE);
if ($found_use_feature) {
ok(1,"$file requires Perl 5.10.1");
} else {
ok(0,"$file DOES NOT require Perl 5.10.1 --WARNING");
}
}
# Check to see that all error messages use tags (for l10n reasons.) # Check to see that all error messages use tags (for l10n reasons.)
foreach my $file (@testitems) { foreach my $file (@testitems) {
$file =~ s/\s.*$//; # nuke everything after the first space (#comment) $file =~ s/\s.*$//; # nuke everything after the first space (#comment)
......
...@@ -10,7 +10,9 @@ ...@@ -10,7 +10,9 @@
# are being run instead of shown. This script does not rely on database access # are being run instead of shown. This script does not rely on database access
# or correct params. # or correct params.
use 5.10.1;
use strict; use strict;
print "content-type:text/plain\n\n";
print "OK " . ($::ENV{MOD_PERL} || "mod_cgi") . "\n"; say "content-type:text/plain\n";
say "OK " . ($::ENV{MOD_PERL} || "mod_cgi");
exit; exit;
...@@ -10,12 +10,12 @@ ...@@ -10,12 +10,12 @@
# as its only argument. It attempts to troubleshoot as many installation # as its only argument. It attempts to troubleshoot as many installation
# issues as possible. # issues as possible.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Util qw(say);
use Socket; use Socket;
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -9,8 +9,10 @@ ...@@ -9,8 +9,10 @@
# This script remains as a backwards-compatibility URL for before # This script remains as a backwards-compatibility URL for before
# the time that Voting was an extension. # the time that Voting was an extension.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
use Bugzilla::Error; use Bugzilla::Error;
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
# Script Initialization # Script Initialization
################################################################################ ################################################################################
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
use Bugzilla; use Bugzilla;
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
# param. (We have NEW and REOPENED in there to keep compatibility with old # param. (We have NEW and REOPENED in there to keep compatibility with old
# Bugzillas.) # Bugzillas.)
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as # This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0. # defined by the Mozilla Public License, v. 2.0.
use 5.10.1;
use strict; use strict;
use lib qw(. lib); use lib qw(. lib);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment