mirror of
https://github.com/Circlepuller/Tinyboard.git
synced 2025-01-17 13:28:31 +01:00
Revert "imagecreatefrombmp(1) and imagebmp(2) are now polyfills for PHP < 7.2"
This reverts commit 583a58288a76c98e3b613ffe2b8567d970aab98f.
This commit is contained in:
parent
583a58288a
commit
02abee7304
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user