|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-07-23 18:30 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2016-07-23 18:30 UTC] cmb@php.net
[2016-07-31 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 06:00:01 2025 UTC |
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.