https://bugzilla.wikimedia.org/show_bug.cgi?id=56661
Web browser: ---
Bug ID: 56661
Summary: SqlBagOStuff.php on line 232 / Invalid argument
supplied for foreach()
Product: MediaWiki
Version: unspecified
Hardware: All
URL: https://s3.amazonaws.com/archive.travis-ci.org/jobs/13
455252/log.txt
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General/Unknown
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Mobile Platform: ---
## Error
PHP Warning: Invalid argument supplied for foreach() in
/home/travis/build/wikimedia/phase3/includes/objectcache/SqlBagOStuff.php on
line 232
## Cause (line 232)
$res = $db->select( ...) causes a fatal when the select returns a boolean
(because DatabaseBase::resultObject is allowed to return a boolean) instead of
a ResultWrapper, $res isn't checked and immediately used as input for the
succeeding foreach ( $res as $row ) call.
MediaWiki 1.23alpha, other details can be looked up using the attached
travis-log.
--
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