Page MenuHomePhabricator

ParserFunctions: Division by zero in Expr.php
Closed, ResolvedPublic

Description

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


Version: unspecified
Severity: minor

Details

Reference
bz35866

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:11 AM
bzimport added a project: ParserFunctions.
bzimport set Reference to bz35866.

Rather annoyingly, that's about it...

Apr 10 20:11:54 10.0.8.26 apache2[4479]: PHP Warning: Division by zero in /usr/local/apache/common-local/php-1.19/extensions/ParserFunctions/Expr.php on line 423

  • Bug 37709 has been marked as a duplicate of this bug. ***