[PHP-CVS] com php-src: - fix name for imageflip constants, consistent witht the other: ext/gd/gd.c

2013-02-27 Thread Pierre Joye
Commit:74983a45cc3be6f9697843d9dfb7913021c2519b
Author:Pierre Joye  Wed, 27 Feb 2013 20:23:31 
+0100
Parents:   03d0bf633d26644f6105e1f75f86dd352e80ce0f
Branches:  master

Link:   
http://git.php.net/?p=php-src.git;a=commitdiff;h=74983a45cc3be6f9697843d9dfb7913021c2519b

Log:
- fix name for imageflip constants, consistent witht the other

Changed paths:
  M  ext/gd/gd.c


Diff:
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 05ab6551..c6400f5 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -1200,9 +1200,10 @@ PHP_MINIT_FUNCTION(gd)
REGISTER_LONG_CONSTANT("IMG_EFFECT_NORMAL", gdEffectNormal, CONST_CS | 
CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("IMG_EFFECT_OVERLAY", gdEffectOverlay, CONST_CS 
| CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("GD_BUNDLED", 1, CONST_CS | CONST_PERSISTENT);
-   REGISTER_LONG_CONSTANT("GD_FLIP_HORINZONTAL", GD_FLIP_HORINZONTAL, 
CONST_CS | CONST_PERSISTENT);
-   REGISTER_LONG_CONSTANT("GD_FLIP_VERTICAL", GD_FLIP_VERTICAL, CONST_CS | 
CONST_PERSISTENT);
-   REGISTER_LONG_CONSTANT("GD_FLIP_BOTH", GD_FLIP_BOTH, CONST_CS | 
CONST_PERSISTENT);
+
+   REGISTER_LONG_CONSTANT("IMG_FLIP_HORINZONTAL", 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
REGISTER_LONG_CONSTANT("GD_BUNDLED", 0, CONST_CS | CONST_PERSISTENT);
 #endif


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-CVS] com php-src: - fix name for imageflip constants, consistent witht the other: ext/gd/gd.c

2013-02-27 Thread Christopher Jones



On 02/27/2013 11:23 AM, Pierre Joye wrote:


+   REGISTER_LONG_CONSTANT("IMG_FLIP_HORINZONTAL", GD_FLIP_HORINZONTAL, 
CONST_CS | CONST_PERSISTENT);


Hi Pierre,

Should HORIZONTAL be spelled correctly, or it is being consistent with someone 
else's mistake?

Chris

--
christopher.jo...@oracle.com  http://twitter.com/ghrd
Newly updated, free PHP & Oracle book:
http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php