rediff patch - typo

This commit is contained in:
Aleksandr Proklov 2021-09-25 12:15:35 +09:00
parent 7cb97cc604
commit 213c6172fb

View file

@ -1,10 +1,6 @@
# backportd patch from 8.0
# https://github.com/php/php-src/commit/b3646440b1808abf0874b6f89027ce53ec5da03f
diff -ruN a/ext/gd/gd.c b/ext/gd/gd.c
--- a/ext/gd/gd.c 2021-09-21 20:23:13.000000000 +0900
+++ b/ext/gd/gd.c 2021-09-25 11:37:30.869225981 +0900
+++ b/ext/gd/gd.c 2021-09-25 12:14:22.927843511 +0900
@@ -97,6 +97,11 @@
#include "gd_ctx.c"
@ -24,7 +20,7 @@ diff -ruN a/ext/gd/gd.c b/ext/gd/gd.c
- 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);
+ REGISTER_LONG_CONSTANT("IMG_FLIP_HORIZONTAL", PHP_GD_FLIP_HORINZONTAL, CONST_CS | CONST_PERSISTENT);
+ REGISTER_LONG_CONSTANT("IMG_FLIP_HORIZONTAL", PHP_GD_FLIP_HORIZONTAL, CONST_CS | CONST_PERSISTENT);
+ REGISTER_LONG_CONSTANT("IMG_FLIP_VERTICAL", PHP_GD_FLIP_VERTICAL, CONST_CS | CONST_PERSISTENT);
+ REGISTER_LONG_CONSTANT("IMG_FLIP_BOTH", PHP_GD_FLIP_BOTH, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("IMG_EFFECT_REPLACE", gdEffectReplace, CONST_CS | CONST_PERSISTENT);
@ -40,7 +36,7 @@ diff -ruN a/ext/gd/gd.c b/ext/gd/gd.c
break;
- case GD_FLIP_HORINZONTAL:
+ case PHP_GD_FLIP_HORINZONTAL:
+ case PHP_GD_FLIP_HORIZONTAL:
gdImageFlipHorizontal(im);
break;