From: Pierre Joye Date: Thu, 20 Jun 2013 20:32:52 +0000 (+0200) Subject: Merge branch 'PHP-5.5' X-Git-Tag: php-5.6.0alpha1~415 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1d0a869be09a63d74eb056e0cead8126270106a;p=php Merge branch 'PHP-5.5' * PHP-5.5: fix #65070, bgcolor does not use the same format as the input image with imagerotate fix #65070, bgcolor does not use the same format as the input image with imagerotate Fix the spelling of the php_cli_server_http_response_status_code_pair typedef. Change the search in get_status_string() to correctly handle unknown codes. Update git rules (5.5 is stable, 5.3 sec only) skip test for bug #64936 when tokenizer not built Bump version Update credits Merge NEWS from PHP 5.4 branch Reorder NEWS for PHP 5.5.0 final Conflicts: configure.in ext/gd/libgd/gd_interpolation.c main/php_version.h --- a1d0a869be09a63d74eb056e0cead8126270106a diff --cc ext/gd/libgd/gd_interpolation.c index 2641f97661,e3247a78c1..b6e7c69201 --- a/ext/gd/libgd/gd_interpolation.c +++ b/ext/gd/libgd/gd_interpolation.c @@@ -1735,17 -1729,7 +1728,11 @@@ gdImagePtr gdImageRotateGeneric(gdImage f_slop_x > f_slop_y ? gd_divfx(f_slop_y, f_slop_x) : gd_divfx(f_slop_x, f_slop_y) : 0; + + if (bgColor < 0) { + return NULL; + } + - /* impact perf a bit, but not that much. Implementation for palette - images can be done at a later point. - */ - if (src->trueColor == 0) { - gdImagePaletteToTrueColor(src); - } - dst = gdImageCreateTrueColor(new_width, new_height); if (!dst) { return NULL;