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

       Web browser: ---
             Bug #: 35866
           Summary: Division by zero in Expr.php on line 423
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: ParserFunctions
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


1 Warning:  Division by zero in
/usr/local/apache/common-local/php-1.20wmf1/extensions/ParserFunctions/Expr.php
on line 423


            case EXPR_MOD:
                if ( count( $stack ) < 2 ) {
                    throw new ExprError( 'missing_operand', $this->names[$op]
);
                }
                $right = array_pop( $stack );
                $left = array_pop( $stack );
                if ( $right == 0 ) {
                    throw new ExprError( 'division_by_zero', $this->names[$op]
);
                }
                $stack[] = $left % $right;
                break;


423 is the % line

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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