Bug #70622 [Opn->Fbk]: imagealphablending() reports bad first parameter
| From: | cmb@php.net | Date: | Sat, 23 Jul 2016 18:30:53 +0000 |
| Subject: | Bug #70622 [Opn->Fbk]: imagealphablending() reports bad first parameter | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-202539@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70622&edit=1
ID: 70622
Updated by: cmb@php.net
Reported by: gb4ker at gmail dot com
Summary: imagealphablending() reports bad first parameter
-Status: Open
+Status: Feedback
Type: Bug
Package: GD related
Operating System: Linux (1and1)
PHP Version: 5.5.30
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
I can't reproduce this issue. If you can, please check the result
of imagecreatefrompng() explicitly, e.g. by
var_dump($img = imagecreatefrompng($f));
Previous Comments:
------------------------------------------------------------------------
[2015-10-02 13:48:28] gb4ker at gmail dot com
Description:
------------
The below code is fine on PHP 5.4 but fails on PHP 5.5 (tested on 1and1 Linux servers and WAMP)
imagealphablending() reports a problem - boolean parameter for parameter 1 instead of resource - on
PHP 5.5 but NOT on PHP 5.4
Test script:
---------------
<?php
$f = "test.png";
$img = imagecreatefrompng($f);
if (!$img)
{
echo "Failed to open ".$f;
exit;
}
imagealphablending($img, true);
imagesavealpha($img, true);
header("Content-Type: image/png");
imagepng($img,null,6);
imagedestroy($img);
exit;
?>
Expected result:
----------------
Script runs on php 5.4 and returns an image.
On 5.5 reports broken image depending on browser.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70622&edit=1