Bug #70622 [Fbk->NoF]: imagealphablending() reports bad first parameter

From: Date: Sun, 31 Jul 2016 04:22:27 +0000
Subject: Bug #70622 [Fbk->NoF]: imagealphablending() reports bad first parameter
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202745@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: php-bugs@lists.php.net Reported by: gb4ker at gmail dot com Summary: imagealphablending() reports bad first parameter -Status: Feedback +Status: No Feedback Type: Bug Package: GD related Operating System: Linux (1and1) PHP Version: 5.5.30 Assigned To: cmb Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2016-07-23 18:30:52] cmb@php.net I can't reproduce this issue. If you can, please check the result of imagecreatefrompng() explicitly, e.g. by var_dump($img = imagecreatefrompng($f)); ------------------------------------------------------------------------ [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

« previous php.bugs (#202745) next »