Last modified: 2013-11-26 03:24:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T59575, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57575 - updateCollation refers to $row when it is out of scope
updateCollation refers to $row when it is out of scope
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-26 03:00 UTC by Mark A. Hershberger
Modified: 2013-11-26 03:24 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mark A. Hershberger 2013-11-26 03:00:23 UTC
Today, while I was trying to enable profiling, I set
 $wgProfileToDatabase = true;
and then ran
 php maintenance/update.php
as suggested at [[mw:Manual:How_to_debug]].  I have error_reporting set to show E_STRICT and I noticed a few of the following:
 Notice: Undefined variable: row in maintenance/updateCollation.php on line 192

The reference to $row is outside of the foreach loop where $row is set, so I would expect it to often (if not always) be unset.

I'm not sure if moving the reference to the inside of the foreach loop is the right fix, but it seems to work for me.
Comment 1 Gerrit Notification Bot 2013-11-26 03:05:22 UTC
Change 97670 had a related patch set uploaded by MarkAHershberger:
Move reference to $row where it is in-scope and doesn't produce E_STRICT notices.

https://gerrit.wikimedia.org/r/97670
Comment 2 Gerrit Notification Bot 2013-11-26 03:24:32 UTC
Change 97670 merged by MarkAHershberger:
Move reference to $row where it is in-scope and doesn't produce E_STRICT notices.

https://gerrit.wikimedia.org/r/97670

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links