Revert "imagecreatefrombmp(1) and imagebmp(2) are now polyfills for PHP < 7.2"

This reverts commit 583a58288a76c98e3b613ffe2b8567d970aab98f.
This commit is contained in:
Daniel Saunders 2018-10-30 01:16:48 -04:00
parent 583a58288a
commit 02abee7304

View File

@ -496,7 +496,7 @@ class ImageBMP extends ImageBase {
}
}
if (!function_exists('imagecreatefrombmp')) {
/*********************************************/
/* Fonction: imagecreatefrombmp */
/* Author: DHKold */
@ -582,9 +582,7 @@ function imagecreatefrombmp($filename) {
return $res;
}
}
if (!function_exists('imagebmp')) {
function imagebmp(&$img, $filename='') {
$widthOrig = imagesx($img);
$widthFloor = ((floor($widthOrig/16))*16);
@ -657,7 +655,6 @@ function imagebmp(&$img, $filename='') {
fclose($file);
}
}
}
// imagebmp helpers
function int_to_dword($n) {
return chr($n & 255).chr(($n >> 8) & 255).chr(($n >> 16) & 255).chr(($n >> 24) & 255);