[Bug 46095] {{#switch}} should not cast values to integers or floats

2013-11-03 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=46095

--- Comment #2 from Kevin Israel (PleaseStand) pleasest...@live.com ---
Of course, that's not to say I like the current behavior: it can make the
result depend on PHP_INT_MAX!

{{#ifeq:400|401|32-bit|64-bit}}

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 46095] {{#switch}} should not cast values to integers or floats

2013-11-02 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=46095

Kevin Israel (PleaseStand) pleasest...@live.com changed:

   What|Removed |Added

   Keywords|code-update-regression  |
 Status|NEW |RESOLVED
 CC||pleasest...@live.com
 Resolution|--- |WONTFIX
Summary|[Regression] {{#switch}}|{{#switch}} should not cast
   |should not cast values to   |values to integers or
   |integers or floats  |floats

--- Comment #1 from Kevin Israel (PleaseStand) pleasest...@live.com ---
Not a regression; this was probably always broken because of the use of ==
instead of === in the relevant parts of the code.

In fact, this is documented at
https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#Comparison_behaviour.
Fixing this may break compatibility with existing wikitext.

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l