|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 Patch gd-rect-order-bug for GD related Bug #53156Patch version 2010-10-25 19:53 UTCReturn 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;
 | 
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Thu Oct 30 23:00:01 2025 UTC |