php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #53156
Patch gd-rect-order-bug revision 2010-10-25 19:53 UTC by ljb9832 at pobox dot com

Patch gd-rect-order-bug for GD related Bug #53156

Patch version 2010-10-25 19:53 UTC

Return to Bug #53156 | Download this patch
Patch Revisions:

Developer: ljb9832@pobox.com

--- ext/gd/libgd/gd.c.bak	2010-04-28 10:35:42.000000000 -0400
+++ ext/gd/libgd/gd.c	2010-09-22 16:33:58.000000000 -0400
@@ -2048,7 +2048,9 @@
 		t=y1;
 		y1 = y2;
 		y2 = t;
+	}
 
+    if (x2 < x1) {
 		t = x1;
 		x1 = x2;
 		x2 = t;
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Oct 20 15:01:25 2020 UTC