Bug #73274 [NEW]: imagescale() with IMG_WEIGHTED4 always returns NULL

From: Date: Sun, 09 Oct 2016 14:35:13 +0000
Subject: Bug #73274 [NEW]: imagescale() with IMG_WEIGHTED4 always returns NULL
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204565@lists.php.net to get a copy of this message
From: cmb Operating system: * PHP version: master-Git-2016-10-09 (Git) Package: GD related Bug Type: Bug Bug description:imagescale() with IMG_WEIGHTED4 always returns NULL Description: ------------ When imagescale() is called with the $mode set to IMG_WEIGHTED4, the operation always fails. This has been reported against upstream libgd[1], but as PHP's bundled libgd is affected as well, I'm forwarding the issue. [1] <https://github.com/libgd/libgd/issues/328> Test script: --------------- <?php $src = imagecreatetruecolor(100, 100); imagefilledrectangle($src, 0,0, 99,99, 0xFFFFFF); $dst = imagescale($src, 200, 200, IMG_WEIGHTED4); var_dump($dst != NULL); Expected result: ---------------- bool(true) Actual result: -------------- bool(false) -- Edit bug report at https://bugs.php.net/bug.php?id=73274&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73274&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73274&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73274&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73274&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73274&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73274&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73274&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73274&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73274&r=support Expected behavior: https://bugs.php.net/fix.php?id=73274&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73274&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73274&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73274&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73274&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73274&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73274&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73274&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73274&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73274&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73274&r=mysqlcfg

« previous php.bugs (#204565) next »