From 82765a07800fe39f662bb45fd18199d007e0dc23 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Wed, 27 Feb 2013 21:02:47 +0100 Subject: [PATCH] - typo --- ext/gd/gd.c | 2 +- ext/gd/tests/imageflip.phpt | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ext/gd/gd.c b/ext/gd/gd.c index c6400f5b6e3..2bd0a2d23df 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -1201,7 +1201,7 @@ PHP_MINIT_FUNCTION(gd) REGISTER_LONG_CONSTANT("IMG_EFFECT_OVERLAY", gdEffectOverlay, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("GD_BUNDLED", 1, CONST_CS | CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("IMG_FLIP_HORINZONTAL", GD_FLIP_HORINZONTAL, CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("IMG_FLIP_HORIZONTAL", GD_FLIP_HORINZONTAL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("IMG_FLIP_VERTICAL", GD_FLIP_VERTICAL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("IMG_FLIP_BOTH", GD_FLIP_BOTH, CONST_CS | CONST_PERSISTENT); #else diff --git a/ext/gd/tests/imageflip.phpt b/ext/gd/tests/imageflip.phpt index a1922c2da4c..a326e0a2ba4 100644 --- a/ext/gd/tests/imageflip.phpt +++ b/ext/gd/tests/imageflip.phpt @@ -14,11 +14,10 @@ imagesetpixel($im, 0, 98, 0x00FF00); imagesetpixel($im, 98, 0, 0xFF0000); imagesetpixel($im, 98, 98, 0x0000FF); -imageflip($im, IMG_FLIP_HORINZONTAL); +imageflip($im, IMG_FLIP_HORIZONTAL); imageflip($im, IMG_FLIP_VERTICAL); imageflip($im, IMG_FLIP_BOTH); - var_dump(dechex(imagecolorat($im, 0, 0))); var_dump(dechex(imagecolorat($im, 0, 98))); var_dump(dechex(imagecolorat($im, 98, 0)));