Closed
Bug 47826
Opened 25 years ago
Closed 25 years ago
defined(%hash) is deprecated
Categories
(Bugzilla :: Bugzilla-General, defect, P3)
Bugzilla
Bugzilla-General
Tracking
()
People
(Reporter: rufus-mozilla, Assigned: justdave)
References
()
Details
In the CGI.pl file you get the following error when you run it:
defined(%hash) is deprecated at C:\mozilla\webtools\bugzilla\CGI.pl line 121 (#1)
(D deprecated) defined() is not usually useful on hashes because it checks for an
undefined scalar value. If you want to see if the hash is empty,
just use if (%hash) { # not empty } for example.
(Maybe you should just omit the defined()?)
Will attatch simple patch to fix.
Reporter | ||
Comment 1•25 years ago
|
||
cvs diff CGI.pl (in directory C:\mozilla\webtools\bugzilla\)
Index: CGI.pl
===================================================================
RCS file: /cvsroot/mozilla/webtools/bugzilla/CGI.pl,v
retrieving revision 1.67
diff -r1.67 CGI.pl
121c121
< if (defined %isnull) {
---
> if (%isnull) {
Keywords: patch
Assignee | ||
Updated•25 years ago
|
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Comment 2•25 years ago
|
||
Assignee | ||
Comment 4•24 years ago
|
||
moving all closed Bugzilla bugs to the new Bugzilla product.
This batch is DUPLICATE/INVALID/WORKSFORME/WONTFIX
reassigning to default owner and QA in case of the bug being reopened.
Clearing milestones, since we really shouldn't have them on these types of
resolutions. Sorry for the spam everyone...
Assignee: tara → justdave
Status: VERIFIED → NEW
Component: Bugzilla → Bugzilla-General
Product: Webtools → Bugzilla
Version: other → unspecified
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•