diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c index 71a0e9ea63f2..bef2e3a4df0c 100644 --- a/ext/gd/libgd/gd.c +++ b/ext/gd/libgd/gd.c @@ -3188,7 +3188,7 @@ int gdImagePaletteToTrueColor(gdImagePtr src) const unsigned int sx = gdImageSX(src); // Note: do not revert back to gdMalloc() below ; reason here, - // due to a bug with a certain memory_limit INI value treshold, + // due to a bug with a certain memory_limit INI value threshold, // imagepalettetotruecolor crashes with even unrelated ZendMM allocations. // See GH-17772 for a use case. src->tpixels = (int **) gdCalloc(sy, sizeof(int *)); diff --git a/ext/gd/libgd/gd.h b/ext/gd/libgd/gd.h index 5325a6370925..26c4196e85e1 100644 --- a/ext/gd/libgd/gd.h +++ b/ext/gd/libgd/gd.h @@ -50,7 +50,7 @@ extern "C" { pixels are represented by integers, which must be 32 bits wide or more. - True colors are repsented as follows: + True colors are represented as follows: ARGB diff --git a/ext/gd/libgd/gd_bmp.c b/ext/gd/libgd/gd_bmp.c index c7c9cc9d8c1e..85a3d5ccfd6d 100644 --- a/ext/gd/libgd/gd_bmp.c +++ b/ext/gd/libgd/gd_bmp.c @@ -157,7 +157,7 @@ static int _gdImageBmpCtx(gdImagePtr im, gdIOCtxPtr out, int compression){ gdBMPPutInt(out, (compression ? BMP_BI_RLE8 : BMP_BI_RGB)); /* compression */ gdBMPPutInt(out, bitmap_size); /* image size */ gdBMPPutInt(out, 0); /* H resolution */ - gdBMPPutInt(out, 0); /* V ressolution */ + gdBMPPutInt(out, 0); /* V resolution */ gdBMPPutInt(out, im->colorsTotal); /* colours used */ gdBMPPutInt(out, 0); /* important colours */ diff --git a/ext/gd/libgd/gd_interpolation.c b/ext/gd/libgd/gd_interpolation.c index f8ba9087910f..fa15c4c59dc6 100644 --- a/ext/gd/libgd/gd_interpolation.c +++ b/ext/gd/libgd/gd_interpolation.c @@ -113,7 +113,7 @@ typedef struct { double *Weights; /* Normalized weights of neighboring pixels */ int Left,Right; /* Bounds of source pixels window */ -} ContributionType; /* Contirbution information for a single pixel */ +} ContributionType; /* Contribution information for a single pixel */ typedef struct { @@ -481,7 +481,7 @@ static double filter_hermite(const double x1) return 0.0; } -/* Trangle filter, default radius 1 */ +/* Triangle filter, default radius 1 */ static double filter_triangle(const double x1) { const double x = x1 < 0.0 ? -x1 : x1; @@ -630,7 +630,7 @@ static double filter_welsh(const double x) #endif -/* keep it for future usage for affine copy over an existing image, targetting fix for 2.2.2 */ +/* keep it for future usage for affine copy over an existing image, targeting fix for 2.2.2 */ #if 0 /* Copied from upstream's libgd */ static inline int _color_blend (const int dst, const int src) diff --git a/ext/gd/libgd/gd_tga.c b/ext/gd/libgd/gd_tga.c index f888f9ea6fbe..bd49475e6e2c 100644 --- a/ext/gd/libgd/gd_tga.c +++ b/ext/gd/libgd/gd_tga.c @@ -236,7 +236,7 @@ int read_image_tga( gdIOCtx *ctx, oTga *tga ) if (tga->imagetype != TGA_TYPE_RGB && tga->imagetype != TGA_TYPE_RGB_RLE) return -1; - /*! \brief Allocate memmory for image block + /*! \brief Allocate memory for image block * Allocate a chunk of memory for the image block to be passed into. */ tga->bitmap = (int *) gdMalloc(image_block_size * sizeof(int)); diff --git a/ext/gd/libgd/gd_tga.h b/ext/gd/libgd/gd_tga.h index 297f3dc99d6d..34da6197db18 100644 --- a/ext/gd/libgd/gd_tga.h +++ b/ext/gd/libgd/gd_tga.h @@ -23,7 +23,7 @@ typedef struct oTga_ { uint8_t alphabits; // alpha bits (low 4bits of header 17) uint8_t fliph; // horizontal or vertical uint8_t flipv; // flip - char *ident; // identifcation tag string + char *ident; // identification tag string int *bitmap; // bitmap data } oTga; diff --git a/ext/gd/libgd/gdft.c b/ext/gd/libgd/gdft.c index 34a4064f5fcb..3f9cf59d568c 100644 --- a/ext/gd/libgd/gdft.c +++ b/ext/gd/libgd/gdft.c @@ -400,7 +400,7 @@ static void *fontFetch (char **error, void *key) fontlist = gdEstrdup(a->fontlist); /* - * Must use gd_strtok_r becasuse strtok() isn't thread safe + * Must use gd_strtok_r because strtok() isn't thread safe */ for (name = gd_strtok_r (fontlist, LISTSEPARATOR, &strtok_ptr); name; name = gd_strtok_r (0, LISTSEPARATOR, &strtok_ptr)) { char *strtok_ptr_path;