Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
d6c2d37b
Commit
d6c2d37b
authored
Apr 13, 2015
by
David Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1153125: bug 1051056 causes "Constant subroutine redefined" warnings during t/001compile.t
r=LpSolit,a=glob
parent
7d0c10e7
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
16 additions
and
15 deletions
+16
-15
Constants.pm
Bugzilla/API/1_0/Constants.pm
+1
-1
Bug.pm
Bugzilla/API/1_0/Resource/Bug.pm
+1
-1
Component.pm
Bugzilla/API/1_0/Resource/Component.pm
+1
-1
FlagType.pm
Bugzilla/API/1_0/Resource/FlagType.pm
+1
-1
Group.pm
Bugzilla/API/1_0/Resource/Group.pm
+1
-1
Product.pm
Bugzilla/API/1_0/Resource/Product.pm
+1
-1
User.pm
Bugzilla/API/1_0/Resource/User.pm
+1
-1
Server.pm
Bugzilla/API/1_0/Server.pm
+1
-1
Util.pm
Bugzilla/API/1_0/Util.pm
+1
-1
Server.pm
Bugzilla/API/Server.pm
+7
-6
No files found.
Bugzilla/API/1_0/Constants.pm
View file @
d6c2d37b
...
@@ -15,7 +15,7 @@ use Bugzilla::Hook;
...
@@ -15,7 +15,7 @@ use Bugzilla::Hook;
use
parent
qw(Exporter)
;
use
parent
qw(Exporter)
;
our
@EXPORT
=
qw(
our
@EXPORT
_OK
=
qw(
WS_ERROR_CODE
WS_ERROR_CODE
STATUS_OK
STATUS_OK
...
...
Bugzilla/API/1_0/Resource/Bug.pm
View file @
d6c2d37b
...
@@ -11,7 +11,7 @@ use 5.10.1;
...
@@ -11,7 +11,7 @@ use 5.10.1;
use
strict
;
use
strict
;
use
warnings
;
use
warnings
;
use
Bugzilla::API::1_0::
Constants
;
use
Bugzilla::API::1_0::
Constants
qw(STATUS_CREATED)
;
use
Bugzilla::API::1_0::
Util
;
use
Bugzilla::API::1_0::
Util
;
use
Bugzilla::
Comment
;
use
Bugzilla::
Comment
;
...
...
Bugzilla/API/1_0/Resource/Component.pm
View file @
d6c2d37b
...
@@ -11,7 +11,7 @@ use 5.10.1;
...
@@ -11,7 +11,7 @@ use 5.10.1;
use
strict
;
use
strict
;
use
warnings
;
use
warnings
;
use
Bugzilla::API::1_0::
Constants
;
use
Bugzilla::API::1_0::
Constants
qw(STATUS_CREATED)
;
use
Bugzilla::API::1_0::
Util
;
use
Bugzilla::API::1_0::
Util
;
use
Bugzilla::
Component
;
use
Bugzilla::
Component
;
...
...
Bugzilla/API/1_0/Resource/FlagType.pm
View file @
d6c2d37b
...
@@ -11,7 +11,7 @@ use 5.10.1;
...
@@ -11,7 +11,7 @@ use 5.10.1;
use
strict
;
use
strict
;
use
warnings
;
use
warnings
;
use
Bugzilla::API::1_0::
Constants
;
use
Bugzilla::API::1_0::
Constants
qw(STATUS_CREATED)
;
use
Bugzilla::API::1_0::
Util
;
use
Bugzilla::API::1_0::
Util
;
use
Bugzilla::
Component
;
use
Bugzilla::
Component
;
...
...
Bugzilla/API/1_0/Resource/Group.pm
View file @
d6c2d37b
...
@@ -11,7 +11,7 @@ use 5.10.1;
...
@@ -11,7 +11,7 @@ use 5.10.1;
use
strict
;
use
strict
;
use
warnings
;
use
warnings
;
use
Bugzilla::API::1_0::
Constants
;
use
Bugzilla::API::1_0::
Constants
qw(STATUS_CREATED)
;
use
Bugzilla::API::1_0::
Util
;
use
Bugzilla::API::1_0::
Util
;
use
Bugzilla::
Constants
;
use
Bugzilla::
Constants
;
...
...
Bugzilla/API/1_0/Resource/Product.pm
View file @
d6c2d37b
...
@@ -11,7 +11,7 @@ use 5.10.1;
...
@@ -11,7 +11,7 @@ use 5.10.1;
use
strict
;
use
strict
;
use
warnings
;
use
warnings
;
use
Bugzilla::API::1_0::
Constants
;
use
Bugzilla::API::1_0::
Constants
qw(STATUS_CREATED)
;
use
Bugzilla::API::1_0::
Util
;
use
Bugzilla::API::1_0::
Util
;
use
Bugzilla::
Product
;
use
Bugzilla::
Product
;
...
...
Bugzilla/API/1_0/Resource/User.pm
View file @
d6c2d37b
...
@@ -11,7 +11,7 @@ use 5.10.1;
...
@@ -11,7 +11,7 @@ use 5.10.1;
use
strict
;
use
strict
;
use
warnings
;
use
warnings
;
use
Bugzilla::API::1_0::
Constants
;
use
Bugzilla::API::1_0::
Constants
qw(STATUS_CREATED)
;
use
Bugzilla::API::1_0::
Util
;
use
Bugzilla::API::1_0::
Util
;
use
Bugzilla::
Constants
;
use
Bugzilla::
Constants
;
...
...
Bugzilla/API/1_0/Server.pm
View file @
d6c2d37b
...
@@ -11,7 +11,7 @@ use 5.10.1;
...
@@ -11,7 +11,7 @@ use 5.10.1;
use
strict
;
use
strict
;
use
warnings
;
use
warnings
;
use
Bugzilla::API::1_0::
Constants
;
use
Bugzilla::API::1_0::
Constants
qw(API_AUTH_HEADERS)
;
use
Bugzilla::API::1_0::
Util
qw(taint_data fix_credentials api_include_exclude)
;
use
Bugzilla::API::1_0::
Util
qw(taint_data fix_credentials api_include_exclude)
;
use
Bugzilla::
Constants
;
use
Bugzilla::
Constants
;
...
...
Bugzilla/API/1_0/Util.pm
View file @
d6c2d37b
...
@@ -11,7 +11,7 @@ use 5.10.1;
...
@@ -11,7 +11,7 @@ use 5.10.1;
use
strict
;
use
strict
;
use
warnings
;
use
warnings
;
use
Bugzilla::API::1_0::
Constants
;
use
Bugzilla::API::1_0::
Constants
qw(API_AUTH_HEADERS)
;
use
Bugzilla::
Error
;
use
Bugzilla::
Error
;
use
Bugzilla::
Flag
;
use
Bugzilla::
Flag
;
use
Bugzilla::
FlagType
;
use
Bugzilla::
FlagType
;
...
...
Bugzilla/API/Server.pm
View file @
d6c2d37b
...
@@ -95,25 +95,26 @@ sub server {
...
@@ -95,25 +95,26 @@ sub server {
sub
constants
{
sub
constants
{
my
(
$self
)
=
@_
;
my
(
$self
)
=
@_
;
my
$api_version
=
$self
->
api_version
;
return
$self
->
{
_constants
}
if
defined
$self
->
{
_constants
}
;
no
strict
'refs'
;
no
strict
'refs'
;
my
$api_version
=
$self
->
api_version
;
my
$class
=
"Bugzilla::API::${api_version}::Constants"
;
my
$class
=
"Bugzilla::API::${api_version}::Constants"
;
require_module
(
$class
);
require_module
(
$class
);
my
%
constants
;
$self
->
{
_constants
}
=
{}
;
foreach
my
$constant
(
@
{
$class
.
"::EXPORT
"
},
@
{
$class
.
"::EXPORT
_OK"
})
{
foreach
my
$constant
(
@
{
$class
.
"::EXPORT_OK"
})
{
if
(
ref
$class
->
$constant
)
{
if
(
ref
$class
->
$constant
)
{
$
constants
{
$constant
}
=
$class
->
$constant
;
$
self
->
{
_constants
}
->
{
$constant
}
=
$class
->
$constant
;
}
}
else
{
else
{
my
@list
=
(
$class
->
$constant
);
my
@list
=
(
$class
->
$constant
);
$
constants
{
$constant
}
=
(
scalar
(
@list
)
==
1
)
?
$list
[
0
]
:
\
@list
;
$
self
->
{
_constants
}
->
{
$constant
}
=
(
scalar
(
@list
)
==
1
)
?
$list
[
0
]
:
\
@list
;
}
}
}
}
return
\%
constants
;
return
$self
->
{
_constants
}
;
}
}
sub
response_header
{
sub
response_header
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment