Issue #2918570 by xjm, David_Rothstein: Hotfix for ImageToolkitGdTestCase failing on newer PHP 7 and 7.1 releases