Throw Exceptions on preg_* failures in MagicWordArray::matchAndRemove()
authorKunal Mehta <legoktm@gmail.com>
Thu, 15 Oct 2015 18:37:38 +0000 (11:37 -0700)
committerOri.livneh <ori@wikimedia.org>
Fri, 23 Oct 2015 16:24:42 +0000 (16:24 +0000)
commit6627978c77c4fea850507cb6cd6e1b8ee36ce748
tree7127dfd92337dc07f74ae732ecffa7b3d035cdd4
parentcf61d28ba91263d02284bff6eccaf46a83988acf
Throw Exceptions on preg_* failures in MagicWordArray::matchAndRemove()

There are a lot of other cases in this file alone that need to be fixed
(e.g. (bool)preg_match), but those should be fixed in a more systematic
way like a wrapper function.

Bug: T115514
Change-Id: I3840a56adc0a6e50963b930051892491f8e90245
includes/MagicWord.php