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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC