Skip to content

Commit 886bf82

Browse files
authored
[skip ci] Fix typos discovered by codespell (#12228)
1 parent 42010d4 commit 886bf82

File tree

14 files changed

+17
-17
lines changed

14 files changed

+17
-17
lines changed

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
/Zend/zend_vm_handlers.h linguist-generated -diff
2626
/Zend/zend_vm_opcodes.[ch] linguist-generated -diff
2727

28-
# The OSS fuzz files are bunary
28+
# The OSS fuzz files are binary
2929
/ext/date/tests/ossfuzz*.txt binary

docs/release-process.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ volunteers to begin the selection process for the next release managers.
992992
```shell
993993
cd /path/to/repos/php/web-php
994994
git submodule update
995-
cd distributions # This is the submodule refering to web-php-distributions
995+
cd distributions # This is the submodule referring to web-php-distributions
996996
git pull origin master
997997
cd ..
998998
git add distributions

ext/mbstring/tests/data/JISX0212.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
#
5454
# However, JIS X 0212 maintains the distinction between
5555
# the lowercase forms of these two elements at 0x2942 and 0x2943.
56-
# Given the structre of these JIS encodings, it is clear that
56+
# Given the structure of these JIS encodings, it is clear that
5757
# 0x2922 and 0x2942 are intended to be a capital/small pair.
5858
# Consequently, in the Unicode mapping, 0x2922 is treated as
5959
# LATIN CAPITAL LETTER D WITH STROKE.

ext/mbstring/tests/data/KSX1001.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# (at ftp://ftp.unicode.org/Public/MAPPING/EASTASIA/KSC) which is
3030
# actually NOT the mapping between KS X 1001(KS C 5601-1992) and Unicode 2.0
3131
# BUT the mapping table between UHC (Microsoft Unified Hangul Code)
32-
# and Unicode 2.0. Hence, in this pacakge, I renamed it as UHC.TXT
32+
# and Unicode 2.0. Hence, in this package, I renamed it as UHC.TXT
3333
#
3434
# Please, note that there was a change in naming scheme of
3535
# Korean standard for information exchange.
@@ -50,7 +50,7 @@
5050
# printf ("0x%04X 0x%04X %s\n",$k-0x8080, $u,join(' ',@rest));
5151
# }
5252
#
53-
# Column #1 : KS X 1001(KS C 5601-1992 excluding addtional Hangul
53+
# Column #1 : KS X 1001(KS C 5601-1992 excluding additional Hangul
5454
# syllables defined for Johab encoding in Annex 3)
5555
# in hex as 0xXXXX
5656
# Column #2 : the Unicode (in hex as 0xXXXX)

ext/reflection/tests/bug46064.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #46064 (Exception when creating ReflectionProperty object on dynamicly created property)
2+
Bug #46064 (Exception when creating ReflectionProperty object on dynamically created property)
33
--FILE--
44
<?php
55

ext/reflection/tests/bug46064_2.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #46064.2 (Exception when creating ReflectionProperty object on dynamicly created property)
2+
Bug #46064.2 (Exception when creating ReflectionProperty object on dynamically created property)
33
--FILE--
44
<?php
55

ext/session/tests/user_session_module/session_set_save_handler_class_012.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class MySession extends SessionHandler {
1919
++$this->i;
2020
echo 'Open:', session_id(), "\n";
2121
// This test was written for broken return value handling
22-
// Mimmick what was actually being tested by returning true here
22+
// Mimic what was actually being tested by returning true here
2323
return (null === parent::open());
2424
}
2525
public function read($key): string|false {

main/streams/xp_socket.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ static ssize_t php_sockop_read(php_stream *stream, char *buf, size_t count)
173173
bool dont_wait = has_buffered_data ||
174174
(sock->timeout.tv_sec == 0 && sock->timeout.tv_usec == 0);
175175
/* Set MSG_DONTWAIT if no wait is needed or there is unlimited timeout which was
176-
* added by fix for #41984 commited in 9343c5404. */
176+
* added by fix for #41984 committed in 9343c5404. */
177177
if (dont_wait || sock->timeout.tv_sec != -1) {
178178
recv_flags = MSG_DONTWAIT;
179179
}

sapi/cli/tests/php_cli_server_014.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #60477: Segfault after two multipart/form-data POST requestes
2+
Bug #60477: Segfault after two multipart/form-data POST requests
33
--SKIPIF--
44
<?php
55
include "skipif.inc";

sapi/fpm/fpm/fpm_events.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ int fpm_event_init_main(void);
4343
int fpm_event_set(struct fpm_event_s *ev, int fd, int flags, void (*callback)(struct fpm_event_s *, short, void *), void *arg);
4444
int fpm_event_add(struct fpm_event_s *ev, unsigned long int timeout);
4545
int fpm_event_del(struct fpm_event_s *ev);
46-
int fpm_event_pre_init(char *machanism);
46+
int fpm_event_pre_init(char *mechanism);
4747
const char *fpm_event_mechanism_name(void);
4848
int fpm_event_support_edge_trigger(void);
4949

sapi/fpm/tests/response.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class Response
184184
/**
185185
* Expect error pattern in the response.
186186
*
187-
* @param string $errorMessagePattern Expected error message RegExp patter.
187+
* @param string $errorMessagePattern Expected error message RegExp pattern.
188188
*
189189
* @return Response
190190
*/

sapi/fpm/www.conf.in

+3-3
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ pm.max_spare_servers = 3
229229
; it's always 0 if the process is not in Idle state
230230
; because memory calculation is done when the request
231231
; processing has terminated;
232-
; If the process is in Idle state, then informations are related to the
233-
; last request the process has served. Otherwise informations are related to
232+
; If the process is in Idle state, then information is related to the
233+
; last request the process has served. Otherwise information is related to
234234
; the current request being served.
235235
; Example output:
236236
; ************************
@@ -355,7 +355,7 @@ pm.max_spare_servers = 3
355355

356356
; A list of request_uri values which should be filtered from the access log.
357357
;
358-
; As a security precuation, this setting will be ignored if:
358+
; As a security precaution, this setting will be ignored if:
359359
; - the request method is not GET or HEAD; or
360360
; - there is a request body; or
361361
; - there are query parameters; or

win32/build/confutils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3348,7 +3348,7 @@ function toolset_setup_intrinsic_cflags()
33483348
if (TARGET_ARCH == 'arm64') {
33493349
/* arm64 supports neon */
33503350
configure_subst.Add("PHP_SIMD_SCALE", 'NEON');
3351-
/* all offically supported arm64 cpu supports crc32 (TODO: to be confirmed) */
3351+
/* all officially supported arm64 cpu supports crc32 (TODO: to be confirmed) */
33523352
AC_DEFINE('HAVE_ARCH64_CRC32', 1);
33533353
return;
33543354
}

win32/build/mkdist.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ function extract_file_from_tarball($pkg, $filename, $dest_dir) /* {{{ */
271271
}
272272

273273
/* include a snapshot identifier */
274-
$branch = "HEAD"; // TODO - determine this from SVN branche name
274+
$branch = "HEAD"; // TODO - determine this from GitHub branch name
275275
$fp = fopen("$dist_dir/snapshot.txt", "w");
276276
$now = date("r");
277277
fwrite($fp, <<<EOT

0 commit comments

Comments
 (0)