Skip to content

Commit 732d92c

Browse files
[skip ci] Fix various typos and grammar issues (#11143)
1 parent 294d3e9 commit 732d92c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+64
-64
lines changed

ext/calendar/calendar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ PHP_FUNCTION(juliantojd)
354354

355355
/* {{{ heb_number_to_chars*/
356356
/*
357-
caution: the Hebrew format produces non unique result.
357+
caution: the Hebrew format produces non-unique result.
358358
for example both: year '5' and year '5000' produce 'ה'.
359359
use the numeric one for calculations.
360360
*/

ext/gd/libgd/gd_bmp.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ void gdImageBmpCtx(gdImagePtr im, gdIOCtxPtr out, int compression)
152152
gdBMPPutInt(out, im->colorsTotal); /* colours used */
153153
gdBMPPutInt(out, 0); /* important colours */
154154

155-
/* The line must be divisible by 4, else its padded with NULLs */
155+
/* The line must be divisible by 4, else it's padded with NULLs */
156156
padding = ((int)(im->trueColor ? 3 : 1) * im->sx) % 4;
157157
if (padding) {
158158
padding = 4 - padding;
@@ -646,7 +646,7 @@ static int bmp_read_os2_v2_info(gdIOCtxPtr infile, bmp_info_t *info)
646646
return 1;
647647
}
648648

649-
/* Lets seek the next 24 pointless bytes, we don't care too much about it */
649+
/* Let's seek the next 24 pointless bytes, we don't care too much about it */
650650
if (!gdGetBuf(useless_bytes, 24, infile)) {
651651
return 1;
652652
}
@@ -716,7 +716,7 @@ static int bmp_read_direct(gdImagePtr im, gdIOCtxPtr infile, bmp_info_t *info, b
716716
}
717717
}
718718

719-
/* The line must be divisible by 4, else its padded with NULLs */
719+
/* The line must be divisible by 4, else it's padded with NULLs */
720720
padding = ((int)(info->depth / 8) * info->width) % 4;
721721
if (padding) {
722722
padding = 4 - padding;
@@ -883,7 +883,7 @@ static int bmp_read_4bit(gdImagePtr im, gdIOCtxPtr infile, bmp_info_t *info, bmp
883883
}
884884
}
885885

886-
/* The line must be divisible by 4, else its padded with NULLs */
886+
/* The line must be divisible by 4, else it's padded with NULLs */
887887
padding = ((int)ceil(0.5 * info->width)) % 4;
888888
if (padding) {
889889
padding = 4 - padding;
@@ -970,7 +970,7 @@ static int bmp_read_8bit(gdImagePtr im, gdIOCtxPtr infile, bmp_info_t *info, bmp
970970
}
971971
}
972972

973-
/* The line must be divisible by 4, else its padded with NULLs */
973+
/* The line must be divisible by 4, else it's padded with NULLs */
974974
padding = (1 * info->width) % 4;
975975
if (padding) {
976976
padding = 4 - padding;

ext/hash/hash_fnv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ PHP_HASH_API void PHP_FNV164Final(unsigned char digest[8], PHP_FNV164_CTX * cont
161161
* alternate - if > 0 use the alternate version
162162
*
163163
* returns:
164-
* 32 bit hash as a static hash type
164+
* 32-bit hash as a static hash type
165165
*/
166166
static uint32_t
167167
fnv_32_buf(void *buf, size_t len, uint32_t hval, int alternate)
@@ -204,7 +204,7 @@ fnv_32_buf(void *buf, size_t len, uint32_t hval, int alternate)
204204
* alternate - if > 0 use the alternate version
205205
*
206206
* returns:
207-
* 64 bit hash as a static hash type
207+
* 64-bit hash as a static hash type
208208
*/
209209
static uint64_t
210210
fnv_64_buf(void *buf, size_t len, uint64_t hval, int alternate)

ext/hash/hash_md.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ PHP_HASH_API void PHP_MD4Update(PHP_MD4_CTX * context, const unsigned char *inpu
238238
/* }}} */
239239

240240
/* {{{ PHP_MD4Final
241-
MD4 finalization. Ends an MD4 message-digest operation, writing the
241+
MD4 finalization. Ends an MD4 message-digest operation, writing
242242
the message digest and zeroizing the context.
243243
*/
244244
PHP_HASH_API void PHP_MD4Final(unsigned char digest[16], PHP_MD4_CTX * context)

ext/intl/collator/collator_convert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ zval* collator_normalize_sort_argument( zval* arg, zval *rv )
370370

371371
if( Z_TYPE_P( arg ) != IS_STRING )
372372
{
373-
/* If its not a string then nothing to do.
373+
/* If it's not a string then nothing to do.
374374
* Return original arg.
375375
*/
376376
COLLATOR_CONVERT_RETURN_FAILED( arg );

ext/mbstring/libmbfl/filters/mbfilter_base64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
*/
2424
/*
25-
* The source code included in this files was separated from mbfilter.c
25+
* The source code included in this file was separated from mbfilter.c
2626
* by Moriyoshi Koizumi <moriyoshi@php.net> on 4 Dec 2002. The file
2727
* mbfilter.c is included in this package .
2828
*

ext/mbstring/libmbfl/filters/mbfilter_big5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
*/
2424
/*
25-
* The source code included in this files was separated from mbfilter_tw.c
25+
* The source code included in this file was separated from mbfilter_tw.c
2626
* by moriyoshi koizumi <moriyoshi@php.net> on 4 dec 2002.
2727
*
2828
*/

ext/mbstring/libmbfl/filters/mbfilter_cp936.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
*/
2424
/*
25-
* the source code included in this files was separated from mbfilter_cn.c
25+
* the source code included in this file was separated from mbfilter_cn.c
2626
* by moriyoshi koizumi <moriyoshi@php.net> on 4 dec 2002.
2727
*
2828
*/

ext/mbstring/libmbfl/filters/mbfilter_euc_cn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
*/
2424
/*
25-
* The source code included in this files was separated from mbfilter_cn.c
25+
* The source code included in this file was separated from mbfilter_cn.c
2626
* by Moriyoshi Koizumi <moriyoshi@php.net> on 4 Dec 2002.
2727
*
2828
*/

ext/mbstring/libmbfl/filters/mbfilter_euc_jp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
*/
2424
/*
25-
* The source code included in this files was separated from mbfilter_ja.c
25+
* The source code included in this file was separated from mbfilter_ja.c
2626
* by moriyoshi koizumi <moriyoshi@php.net> on 4 dec 2002.
2727
*
2828
*/

0 commit comments

Comments
 (0)