Skip to content

Fix a number of typos in comments / docs #17874

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/gd/libgd/gd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions ext/gd/libgd/gdft.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#endif
#endif

/* number of antialised colors for indexed bitmaps */
/* number of antialiased colors for indexed bitmaps */
/* overwrite Windows GDI define in case of windows build */
#ifdef NUMCOLORS
#undef NUMCOLORS
Expand Down Expand Up @@ -760,7 +760,7 @@ static char * gdft_draw_bitmap (gdCache_head_t *tc_cache, gdImage * im, int fg,
*/
*pixel = (fg < 0) ? -fg : fg;
} else {
/* find antialised color */
/* find antialiased color */
tc_key.bgcolor = *pixel;
tc_elem = (tweencolor_t *) gdCacheGet(tc_cache, &tc_key);
*pixel = tc_elem->tweencolor;
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/shared_alloc_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ static int create_segments(size_t requested_size, zend_shared_segment ***shared_
} else {
char *s = ZCG(accel_directives).mmap_base;

/* skip leading 0x, %p assumes hexdecimal format anyway */
/* skip leading 0x, %p assumes hexadecimal format anyway */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All my life I thought "hexdecimal" is right. Now I know the truth. Thanks. :)

if (*s == '0' && *(s + 1) == 'x') {
s += 2;
}
Expand Down
4 changes: 2 additions & 2 deletions ext/spl/php_spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ PHP_FUNCTION(spl_autoload_register)
if (ZEND_FCI_INITIALIZED(fci)) {
if (!fcc.function_handler) {
/* Call trampoline has been cleared by zpp. Refetch it, because we want to deal
* with it outselves. It is important that it is not refetched on every call,
* with it ourselves. It is important that it is not refetched on every call,
* because calls may occur from different scopes. */
zend_is_callable_ex(&fci.function_name, NULL, IS_CALLABLE_SUPPRESS_DEPRECATIONS, NULL, &fcc, NULL);
}
Expand Down Expand Up @@ -591,7 +591,7 @@ PHP_FUNCTION(spl_autoload_unregister)

if (!fcc.function_handler) {
/* Call trampoline has been cleared by zpp. Refetch it, because we want to deal
* with it outselves. It is important that it is not refetched on every call,
* with it ourselves. It is important that it is not refetched on every call,
* because calls may occur from different scopes. */
zend_is_callable_ex(&fci.function_name, NULL, 0, NULL, &fcc, NULL);
}
Expand Down
2 changes: 1 addition & 1 deletion ext/spl/spl_dllist.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ PHP_METHOD(SplDoublyLinkedList, offsetUnset)
element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO);

if (element != NULL) {
/* connect the neightbors */
/* connect the neighbors */
if (element->prev) {
element->prev->next = element->next;
}
Expand Down
4 changes: 2 additions & 2 deletions ext/standard/crc32_x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static uint8_t pclmul_shuf_mask_table[16] = {
/* Folding of 128-bit data chunks */
#define CRC32_FOLDING_BLOCK_SIZE (16)

/* PCLMUL version of non-relfected crc32 */
/* PCLMUL version of non-reflected crc32 */
ZEND_INTRIN_SSE4_2_PCLMUL_FUNC_DECL(size_t crc32_pclmul_batch(uint32_t *crc, const unsigned char *p, size_t nr, const crc32_pclmul_consts *consts));
size_t crc32_pclmul_batch(uint32_t *crc, const unsigned char *p, size_t nr, const crc32_pclmul_consts *consts)
{
Expand Down Expand Up @@ -183,7 +183,7 @@ size_t crc32_pclmul_batch(uint32_t *crc, const unsigned char *p, size_t nr, cons
return (nr_in - nr); /* the nr processed */
}

/* PCLMUL version of relfected crc32 */
/* PCLMUL version of reflected crc32 */
ZEND_INTRIN_SSE4_2_PCLMUL_FUNC_DECL(size_t crc32_pclmul_reflected_batch(uint32_t *crc, const unsigned char *p, size_t nr, const crc32_pclmul_consts *consts));
size_t crc32_pclmul_reflected_batch(uint32_t *crc, const unsigned char *p, size_t nr, const crc32_pclmul_consts *consts)
{
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/filestat.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

#if defined(__APPLE__)
/*
Apple statvfs has an interger overflow in libc copying to statvfs.
Apple statvfs has an integer overflow in libc copying to statvfs.
cvt_statfs_to_statvfs(struct statfs *from, struct statvfs *to) {
to->f_blocks = (fsblkcnt_t)from->f_blocks;
*/
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/proc_open.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#ifdef HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR_NP
/* Only defined on glibc >= 2.29, FreeBSD CURRENT, musl >= 1.1.24,
* MacOS Catalina or later..
* It should be posible to modify this so it is also
* It should be possible to modify this so it is also
* used in older systems when $cwd == NULL but care must be taken
* as at least glibc < 2.24 has a legacy implementation known
* to be really buggy.
Expand Down
Loading