https://bugzilla.wikimedia.org/show_bug.cgi?id=57575
Web browser: ---
Bug ID: 57575
Summary: updateCollation refers too $row when it is out of
scope
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Maintenance scripts
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Mobile Platform: ---
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.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l