wfBaseConvert(): Avoid PHP warning when converting zero
authorKevin Israel <pleasestand@live.com>
Wed, 13 May 2015 07:36:43 +0000 (03:36 -0400)
committerBryanDavis <bdavis@wikimedia.org>
Wed, 13 May 2015 15:52:49 +0000 (15:52 +0000)
commitcfaaff106862e84bb15e4bc21acd43843715cb2f
tree8ba462be0d50e347d1a931401adf4ce91a77ff19
parent557e6e24446fe6056113aff6970b0246ff365828
wfBaseConvert(): Avoid PHP warning when converting zero

The warning occurs when gmp_init() tries to convert the empty string
that came from ltrim(). This is causing tests to fail under HHVM 3.6.1.

Follows-up 5957856c46c3.

Bug: T98882
Change-Id: Ica86c91d7897db979e09d7cfc82fb3a20b95d4ce
includes/GlobalFunctions.php