Project

General

Profile

Bug #78117 ยป patch.diff

Horst Wiederhold, 2017-05-10 16:32

View differences:

typo3/sysext/install/Classes/SystemEnvironment/Check.php
&& (imagetypes() & IMG_GIF)
) {
// See http://stackoverflow.com/a/13139830
$imageResource = @imagecreatefromgif('data://image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7');
$imageResource = @imagecreatefromgif(__DIR__ . '/../../Resources/Public/Images/TestInput/Test.gif');
if (is_resource($imageResource)) {
imagedestroy($imageResource);
$status = new Status\OkStatus();
......
&& function_exists('imagepng')
&& (imagetypes() & IMG_PNG)
) {
$imageResource = @imagecreatefrompng('data://image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII');
$imageResource = @imagecreatefrompng(__DIR__ . '/../../Resources/Public/Images/TestInput/Test.png');
if (is_resource($imageResource)) {
imagedestroy($imageResource);
$status = new Status\OkStatus();
    (1-1/1)