https://bugzilla.wikimedia.org/show_bug.cgi?id=53258

       Web browser: ---
            Bug ID: 53258
           Summary: Using --report with dumpBackup.php causes division by
                    zero
           Product: MediaWiki
           Version: 1.22-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: Maintenance scripts
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

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.

-- 
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

Reply via email to