Skip to content

Commit 2b2a70d

Browse files
artkayiluuu1994
authored andcommitted
Fix a number of typos in comments / docs
Co-authored-by: Michael Voříšek <[email protected]> Closes phpGH-17874
1 parent 8f21763 commit 2b2a70d

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

ext/opcache/shared_alloc_win32.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ static int create_segments(size_t requested_size, zend_shared_segment ***shared_
284284
} else {
285285
char *s = ZCG(accel_directives).mmap_base;
286286

287-
/* skip leading 0x, %p assumes hexdecimal format anyway */
287+
/* skip leading 0x, %p assumes hexadecimal format anyway */
288288
if (*s == '0' && *(s + 1) == 'x') {
289289
s += 2;
290290
}

ext/spl/php_spl.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ PHP_FUNCTION(spl_autoload_register)
528528
if (ZEND_FCI_INITIALIZED(fci)) {
529529
if (!fcc.function_handler) {
530530
/* Call trampoline has been cleared by zpp. Refetch it, because we want to deal
531-
* with it outselves. It is important that it is not refetched on every call,
531+
* with it ourselves. It is important that it is not refetched on every call,
532532
* because calls may occur from different scopes. */
533533
zend_is_callable_ex(&fci.function_name, NULL, IS_CALLABLE_SUPPRESS_DEPRECATIONS, NULL, &fcc, NULL);
534534
}
@@ -591,7 +591,7 @@ PHP_FUNCTION(spl_autoload_unregister)
591591

592592
if (!fcc.function_handler) {
593593
/* Call trampoline has been cleared by zpp. Refetch it, because we want to deal
594-
* with it outselves. It is important that it is not refetched on every call,
594+
* with it ourselves. It is important that it is not refetched on every call,
595595
* because calls may occur from different scopes. */
596596
zend_is_callable_ex(&fci.function_name, NULL, 0, NULL, &fcc, NULL);
597597
}

ext/spl/spl_dllist.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ PHP_METHOD(SplDoublyLinkedList, offsetUnset)
764764
element = spl_ptr_llist_offset(intern->llist, index, intern->flags & SPL_DLLIST_IT_LIFO);
765765

766766
if (element != NULL) {
767-
/* connect the neightbors */
767+
/* connect the neighbors */
768768
if (element->prev) {
769769
element->prev->next = element->next;
770770
}

ext/standard/crc32_x86.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static uint8_t pclmul_shuf_mask_table[16] = {
6666
/* Folding of 128-bit data chunks */
6767
#define CRC32_FOLDING_BLOCK_SIZE (16)
6868

69-
/* PCLMUL version of non-relfected crc32 */
69+
/* PCLMUL version of non-reflected crc32 */
7070
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));
7171
size_t crc32_pclmul_batch(uint32_t *crc, const unsigned char *p, size_t nr, const crc32_pclmul_consts *consts)
7272
{
@@ -183,7 +183,7 @@ size_t crc32_pclmul_batch(uint32_t *crc, const unsigned char *p, size_t nr, cons
183183
return (nr_in - nr); /* the nr processed */
184184
}
185185

186-
/* PCLMUL version of relfected crc32 */
186+
/* PCLMUL version of reflected crc32 */
187187
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));
188188
size_t crc32_pclmul_reflected_batch(uint32_t *crc, const unsigned char *p, size_t nr, const crc32_pclmul_consts *consts)
189189
{

ext/standard/filestat.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
#if defined(__APPLE__)
4141
/*
42-
Apple statvfs has an interger overflow in libc copying to statvfs.
42+
Apple statvfs has an integer overflow in libc copying to statvfs.
4343
cvt_statfs_to_statvfs(struct statfs *from, struct statvfs *to) {
4444
to->f_blocks = (fsblkcnt_t)from->f_blocks;
4545
*/

ext/standard/proc_open.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#ifdef HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR_NP
3939
/* Only defined on glibc >= 2.29, FreeBSD CURRENT, musl >= 1.1.24,
4040
* MacOS Catalina or later..
41-
* It should be posible to modify this so it is also
41+
* It should be possible to modify this so it is also
4242
* used in older systems when $cwd == NULL but care must be taken
4343
* as at least glibc < 2.24 has a legacy implementation known
4444
* to be really buggy.

0 commit comments

Comments
 (0)