Last modified: 2012-12-11 14:17:45 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 T37866, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35866 - ParserFunctions: Division by zero in Expr.php
ParserFunctions: Division by zero in Expr.php
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
unspecified
All All
: Low minor (vote)
: ---
Assigned To: Sam Reed (reedy)
:
: 37709 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-10 21:37 UTC by Sam Reed (reedy)
Modified: 2012-12-11 14:17 UTC (History)
6 users (show)

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


Attachments

Description Sam Reed (reedy) 2012-04-10 21:37:18 UTC
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
Comment 1 Brion Vibber 2012-04-10 21:40:25 UTC
Code or page to repro?
Comment 2 Sam Reed (reedy) 2012-04-10 22:12:48 UTC
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
Comment 3 Sam Reed (reedy) 2012-06-19 16:08:12 UTC
*** Bug 37709 has been marked as a duplicate of this bug. ***
Comment 4 Sam Reed (reedy) 2012-12-06 23:47:22 UTC
https://gerrit.wikimedia.org/r/37341

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


Navigation
Links