HomePhabricator

wfBaseConvert(): Avoid PHP warning when converting zero

Description

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

Details

Provenance
PleaseStandAuthored on
bd808Committed on May 13 2015, 3:52 PM
Parents
rMW557e6e24446f: Merge "Create global variables related to mediawiki.ui icons"
Branches
Unknown
Tags
Unknown
ChangeId
Ica86c91d7897db979e09d7cfc82fb3a20b95d4ce