Last modified: 2013-08-23 15:38:30 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 T55258, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53258 - Using --report with dumpBackup.php causes division by zero
Using --report with dumpBackup.php causes division by zero
Status: NEW
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.22.0
All All
: Lowest minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-23 15:37 UTC by Svick
Modified: 2013-08-23 15:38 UTC (History)
0 users

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


Attachments

Description Svick 2013-08-23 15:37:54 UTC
The --report parameter of dumpBackup.php is normally used to specify the frequency of reporting. E.g. --report=10 to report every 10 revisions.

But when it's called with --report or --report=0, it seems the script works correctly, except that for every revision processed it also prints something like:

PHP Warning:  Division by zero in C:\Users\Svick\git\mediawiki\maintenance\backup.inc on line 326

I think that the division by zero should not happen. These parameters should either have defined meaning (maybe the same as default for --report and no reporting for --report=0?) or they should cause an error when processing parameters.

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


Navigation
Links