Edit report at https://bugs.php.net/bug.php?id=64725&edit=1
ID: 64725 Updated by: paj...@php.net Reported by: s...@php.net Summary: Wrong return value logic in imageaffinematrixget -Status: Open +Status: Closed Type: Bug Package: GD related Operating System: Linux PHP Version: 5.5Git-2013-04-26 (Git) Block user comment: N Private report: N New Comment: Automatic comment on behalf of pierre....@gmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=25c9f34c9c48cfca70d3e9a154255ef75efd3454 Log: fix #64725, wrong res check Previous Comments: ------------------------------------------------------------------------ [2013-04-26 17:19:45] s...@php.net The build also has these warnings: /home/cjones/php-5.5/ext/gd/libgd/gd_interpolation.c: In function â_gdScaleRowâ: /home/cjones/php-5.5/ext/gd/libgd/gd_interpolation.c:981: warning: type defaults to âintâ in declaration of âleft_channelâ /home/cjones/php-5.5/ext/gd/libgd/gd_interpolation.c: In function â_gdScaleColâ: /home/cjones/php-5.5/ext/gd/libgd/gd_interpolation.c:1023: warning: unused variable ârowâ /home/cjones/php-5.5/ext/gd/libgd/gd_interpolation.c: In function âgdImageRotateGenericâ: /home/cjones/php-5.5/ext/gd/libgd/gd_interpolation.c:1766: warning: unused variable âf_127â /home/cjones/php-5.5/ext/gd/libgd/gd_interpolation.c: At top level: /home/cjones/php-5.5/ext/gd/libgd/gd_interpolation.c:359: warning: âfilter_cubic_splineâ defined but not used /home/cjones/php-5.5/ext/gd/libgd/gd_interpolation.c:375: warning: âfilter_cubic_convolutionâ defined but not used /home/cjones/php-5.5/ext/gd/libgd/gd_interpolation.c:410: warning: âfilter_filterâ defined but not used /home/cjones/php-5.5/ext/gd/libgd/gd_interpolation.c:420: warning: âfilter_lanczos8â defined but not used /home/cjones/php-5.5/ext/gd/libgd/gd_interpolation.c:436: warning: âfilter_lanczos3â defined but not used /home/cjones/php-5.5/ext/gd/libgd/gd_interpolation.c:508: warning: âfilter_cosineâ defined but not used /home/cjones/php-5.5/ext/gd/libgd/gd_interpolation.c:546: warning: âfilter_quadratic_bsplineâ defined but not used /home/cjones/php-5.5/ext/gd/libgd/gd_interpolation.c:595: warning: âfilter_welshâ defined but not used ------------------------------------------------------------------------ [2013-04-26 16:08:34] s...@php.net Description: ------------ Compile warnings in gd.c show that that the return value logic for imageaffinematrixget is wrong: /home/cjones/php-5.5/ext/gd/libgd/gd.c: In function âgdImagePaletteToTrueColorâ: /home/cjones/php-5.5/ext/gd/libgd/gd.c:3014: warning: unused variable âalloc_yâ /home/cjones/php-5.5/ext/gd/gd.c: In function âzif_imageaffinematrixgetâ: /home/cjones/php-5.5/ext/gd/gd.c:5579: warning: suggest parentheses around assignment used as truth value The code it points to is: if (res = GD_FALSE) { RETURN_FALSE; } else { ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64725&edit=1