Skip to content

Commit 9249d82

Browse files
TysonAndrenikic
authored andcommitted
Fix typos in code comments [skip ci]
1 parent cb4c74d commit 9249d82

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

ext/dba/dba.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, int persistent)
889889
spprintf(&lock_name, 0, "%s.lck", info->path);
890890
if (!strcmp(file_mode, "r")) {
891891
/* when in read only mode try to use existing .lck file first */
892-
/* do not log errors for .lck file while in read ony mode on .lck file */
892+
/* do not log errors for .lck file while in read only mode on .lck file */
893893
lock_file_mode = "rb";
894894
info->lock.fp = php_stream_open_wrapper(lock_name, lock_file_mode, STREAM_MUST_SEEK|IGNORE_PATH|persistent_flag, &opened_path);
895895
}

ext/dba/dba_cdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ DBA_UPDATE_FUNC(cdb)
183183
if (!cdb->make)
184184
return FAILURE; /* database was opened readonly */
185185
if (!mode)
186-
return FAILURE; /* cdb_make dosn't know replace */
186+
return FAILURE; /* cdb_make doesn't know replace */
187187
if (cdb_make_add(&cdb->m, key, keylen, val, vallen) != -1)
188188
return SUCCESS;
189189
#endif

ext/dom/node.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ int dom_node_node_value_read(dom_object *obj, zval *retval)
291291
return FAILURE;
292292
}
293293

294-
/* Access to Element node is implemented as a convience method */
294+
/* Access to Element node is implemented as a convenience method */
295295
switch (nodep->type) {
296296
case XML_ATTRIBUTE_NODE:
297297
case XML_TEXT_NODE:
@@ -329,7 +329,7 @@ int dom_node_node_value_write(dom_object *obj, zval *newval)
329329
return FAILURE;
330330
}
331331

332-
/* Access to Element node is implemented as a convience method */
332+
/* Access to Element node is implemented as a convenience method */
333333
switch (nodep->type) {
334334
case XML_ELEMENT_NODE:
335335
case XML_ATTRIBUTE_NODE:

ext/exif/exif.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2969,7 +2969,7 @@ static int exif_process_string_raw(char **result, char *value, size_t byte_count
29692969
* In contrast to exif_process_string this function does always return a string buffer */
29702970
static int exif_process_string(char **result, char *value, size_t byte_count) {
29712971
/* we cannot use strlcpy - here the problem is that we cannot use strlen to
2972-
* determin length of string and we cannot use strlcpy with len=byte_count+1
2972+
* determine length of string and we cannot use strlcpy with len=byte_count+1
29732973
* because then we might get into an EXCEPTION if we exceed an allocated
29742974
* memory page...so we use php_strnlen in conjunction with memcpy and add the NUL
29752975
* char.
@@ -3651,7 +3651,7 @@ static void exif_process_TIFF_in_JPEG(image_info_type *ImageInfo, char *CharBuf,
36513651
exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Process TIFF in JPEG done");
36523652
#endif
36533653

3654-
/* Compute the CCD width, in milimeters. */
3654+
/* Compute the CCD width, in millimeters. */
36553655
if (ImageInfo->FocalplaneXRes != 0) {
36563656
ImageInfo->CCDWidth = (float)(ImageInfo->ExifImageWidth * ImageInfo->FocalplaneUnits / ImageInfo->FocalplaneXRes);
36573657
}
@@ -3716,7 +3716,7 @@ static int exif_scan_JPEG_header(image_info_type *ImageInfo)
37163716

37173717
/* get marker byte, swallowing possible padding */
37183718
/* some software does not count the length bytes of COM section */
3719-
/* one company doing so is very much envolved in JPEG... so we accept too */
3719+
/* one company doing so is very much involved in JPEG... so we accept too */
37203720
if (last_marker==M_COM && comment_correction) {
37213721
comment_correction = 2;
37223722
}

ext/reflection/php_reflection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3113,7 +3113,7 @@ static void reflection_method_invoke(INTERNAL_FUNCTION_PARAMETERS, int variadic)
31133113
} ZEND_HASH_FOREACH_END();
31143114
}
31153115

3116-
/* In case this is a static method, we should'nt pass an object_ptr
3116+
/* In case this is a static method, we shouldn't pass an object_ptr
31173117
* (which is used as calling context aka $this). We can thus ignore the
31183118
* first parameter.
31193119
*

ext/standard/basic_functions.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4905,7 +4905,7 @@ PHP_FUNCTION(error_clear_last)
49054905
}
49064906
/* }}} */
49074907

4908-
/* {{{ proto mixed call_user_func(mixed function_name [, mixed parmeter] [, mixed ...])
4908+
/* {{{ proto mixed call_user_func(mixed function_name [, mixed parameter] [, mixed ...])
49094909
Call a user function which is the first parameter
49104910
Warning: This function is special-cased by zend_compile.c and so is usually bypassed */
49114911
PHP_FUNCTION(call_user_func)
@@ -4958,7 +4958,7 @@ PHP_FUNCTION(call_user_func_array)
49584958
}
49594959
/* }}} */
49604960

4961-
/* {{{ proto mixed forward_static_call(mixed function_name [, mixed parmeter] [, mixed ...]) U
4961+
/* {{{ proto mixed forward_static_call(mixed function_name [, mixed parameter] [, mixed ...]) U
49624962
Call a user function which is the first parameter */
49634963
PHP_FUNCTION(forward_static_call)
49644964
{

ext/standard/ftp_fopen_wrapper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ static int php_stream_ftp_mkdir(php_stream_wrapper *wrapper, const char *url, in
10611061
php_stream_printf(stream, "MKD %s\r\n", ZSTR_VAL(resource->path));
10621062
result = GET_FTP_RESULT(stream);
10631063
} else {
1064-
/* we look for directory separator from the end of string, thus hopefuly reducing our work load */
1064+
/* we look for directory separator from the end of string, thus hopefully reducing our work load */
10651065
char *p, *e, *buf;
10661066

10671067
buf = estrndup(ZSTR_VAL(resource->path), ZSTR_LEN(resource->path));

ext/standard/image.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ static struct gfxinfo *php_handle_jpc(php_stream * stream)
613613
"bit depth" answer somewhat problematic. For this implementation
614614
we'll use the highest depth encountered. */
615615

616-
/* Get the single byte that remains after the file type indentification */
616+
/* Get the single byte that remains after the file type identification */
617617
first_marker_id = php_stream_getc(stream);
618618

619619
/* Ensure that this marker is SIZ (as is mandated by the standard) */

ext/standard/string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1766,7 +1766,7 @@ PHP_FUNCTION(pathinfo)
17661766
/* }}} */
17671767

17681768
/* {{{ php_stristr
1769-
case insensitve strstr */
1769+
case insensitive strstr */
17701770
PHPAPI char *php_stristr(char *s, char *t, size_t s_len, size_t t_len)
17711771
{
17721772
php_strtolower(s, s_len);

0 commit comments

Comments
 (0)