Skip to content

Commit cd0cd3d

Browse files
Fix typos (#7327)
1 parent ffc8717 commit cd0cd3d

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

build/pkg.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ dnl Check to see whether a particular set of modules exists. Similar to
8686
dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
8787
dnl
8888
dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
89-
dnl only at the first occurence in configure.ac, so if the first place
89+
dnl only at the first occurrence in configure.ac, so if the first place
9090
dnl it's called might be skipped (such as if it is within an "if", you
9191
dnl have to call PKG_CHECK_EXISTS manually
9292
AC_DEFUN([PKG_CHECK_EXISTS],

ext/imap/php_imap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3991,7 +3991,7 @@ static int _php_rfc822_len(char *str)
39913991
*/
39923992
len = strlen(str) + 2;
39933993
p = str;
3994-
/* rfc822_cat() will escape all " and \ characters, therefor we need to increase
3994+
/* rfc822_cat() will escape all " and \ characters, therefore we need to increase
39953995
* our buffer length to account for these characters.
39963996
*/
39973997
while ((p = strpbrk(p, "\\\""))) {

ext/mysqli/mysqli.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ void php_mysqli_fetch_into_hash_aux(zval *return_value, MYSQL_RES * result, zend
10531053
EMPTY_SWITCH_DEFAULT_CASE()
10541054
}
10551055
/* even though lval is declared as unsigned, the value
1056-
* may be negative. Therefor we cannot use MYSQLI_LLU_SPEC and must
1056+
* may be negative. Therefore we cannot use MYSQLI_LLU_SPEC and must
10571057
* use MYSQLI_LL_SPEC.
10581058
*/
10591059
snprintf(tmp, sizeof(tmp), (mysql_fetch_field_direct(result, i)->flags & UNSIGNED_FLAG)? MYSQLI_LLU_SPEC : MYSQLI_LL_SPEC, llval);

ext/mysqli/mysqli_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ void mysqli_stmt_fetch_libmysql(INTERNAL_FUNCTION_PARAMETERS)
10451045
#endif
10461046
char tmp[22];
10471047
/* even though lval is declared as unsigned, the value
1048-
* may be negative. Therefor we cannot use MYSQLI_LLU_SPEC and must
1048+
* may be negative. Therefore we cannot use MYSQLI_LLU_SPEC and must
10491049
* use MYSQLI_LL_SPEC.
10501050
*/
10511051
snprintf(tmp, sizeof(tmp), (stmt->stmt->fields[i].flags & UNSIGNED_FLAG)? MYSQLI_LLU_SPEC : MYSQLI_LL_SPEC, llval);

ext/openssl/xp_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2599,7 +2599,7 @@ php_stream *php_openssl_ssl_socket_factory(const char *proto, size_t protolen,
25992599
memset(sslsock, 0, sizeof(*sslsock));
26002600

26012601
sslsock->s.is_blocked = 1;
2602-
/* this timeout is used by standard stream funcs, therefor it should use the default value */
2602+
/* this timeout is used by standard stream funcs, therefore it should use the default value */
26032603
#ifdef _WIN32
26042604
sslsock->s.timeout.tv_sec = (long)FG(default_socket_timeout);
26052605
#else

ext/standard/url.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ PHP_FUNCTION(get_headers)
728728

729729
if ((prev_val = zend_hash_str_find(Z_ARRVAL_P(return_value), Z_STRVAL_P(hdr), (p - Z_STRVAL_P(hdr)))) == NULL) {
730730
add_assoc_stringl_ex(return_value, Z_STRVAL_P(hdr), (p - Z_STRVAL_P(hdr)), s, (Z_STRLEN_P(hdr) - (s - Z_STRVAL_P(hdr))));
731-
} else { /* some headers may occur more than once, therefor we need to remake the string into an array */
731+
} else { /* some headers may occur more than once, therefore we need to remake the string into an array */
732732
convert_to_array(prev_val);
733733
add_next_index_stringl(prev_val, s, (Z_STRLEN_P(hdr) - (s - Z_STRVAL_P(hdr))));
734734
}

0 commit comments

Comments
 (0)