com php-src: Merge branch 'PHP-5.5': ext/gd/libgd/gd_interpol ation.c
| From: | Pierre Joye | Date: | Thu, 20 Jun 2013 20:32:52 +0000 |
| Subject: | com php-src: Merge branch 'PHP-5.5': ext/gd/libgd/gd_interpol ation.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-72445@lists.php.net to get a copy of this message | ||
Commit: a1d0a869be09a63d74eb056e0cead8126270106a
Author: Pierre Joye <pierre.php@gmail.com> Thu, 20 Jun 2013 22:32:52 +0200
Parents: d5b1111fb0a34ecaadb3cfc7149407d3297aa16a c65d663aefd27e39006b9c20a665893aa5265ed4
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a1d0a869be09a63d74eb056e0cead8126270106a
Log:
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
Bugs:
https://bugs.php.net/65070
https://bugs.php.net/64936
Changed paths:
MM ext/gd/libgd/gd_interpolation.c
Diff:
diff --cc ext/gd/libgd/gd_interpolation.c
index 2641f97,e3247a7..b6e7c69
--- 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;