summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2013-02-27 21:02:47 +0100
committerPierre Joye <pierre.php@gmail.com>2013-02-27 21:02:47 +0100
commit82765a07800fe39f662bb45fd18199d007e0dc23 (patch)
treed779715934af30df4b07aec942b807cb4fc15b38
parent74983a45cc3be6f9697843d9dfb7913021c2519b (diff)
downloadphp-git-82765a07800fe39f662bb45fd18199d007e0dc23.tar.gz
- typo
-rw-r--r--ext/gd/gd.c2
-rw-r--r--ext/gd/tests/imageflip.phpt3
2 files changed, 2 insertions, 3 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index c6400f5b6e..2bd0a2d23d 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 a1922c2da4..a326e0a2ba 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)));