Skip to content

Commit 879cd04

Browse files
committed
Merge branch 'PHP-7.4'
2 parents 9baa3a9 + 8588a45 commit 879cd04

File tree

11 files changed

+28
-20
lines changed

11 files changed

+28
-20
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
@@ -2968,7 +2968,7 @@ static int exif_process_string_raw(char **result, char *value, size_t byte_count
29682968
* In contrast to exif_process_string this function does always return a string buffer */
29692969
static int exif_process_string(char **result, char *value, size_t byte_count) {
29702970
/* we cannot use strlcpy - here the problem is that we cannot use strlen to
2971-
* determin length of string and we cannot use strlcpy with len=byte_count+1
2971+
* determine length of string and we cannot use strlcpy with len=byte_count+1
29722972
* because then we might get into an EXCEPTION if we exceed an allocated
29732973
* memory page...so we use php_strnlen in conjunction with memcpy and add the NUL
29742974
* char.
@@ -3650,7 +3650,7 @@ static void exif_process_TIFF_in_JPEG(image_info_type *ImageInfo, char *CharBuf,
36503650
exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Process TIFF in JPEG done");
36513651
#endif
36523652

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

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

ext/ffi/ffi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,13 +806,13 @@ static void *zend_ffi_create_callback(zend_ffi_type *type, zval *value) /* {{{ *
806806
}
807807

808808
if (!zend_is_callable_ex(value, NULL, 0, NULL, &fcc, &error)) {
809-
zend_throw_error(zend_ffi_exception_ce, "Attempt to assing an invalid callback, %s", error);
809+
zend_throw_error(zend_ffi_exception_ce, "Attempt to assign an invalid callback, %s", error);
810810
return NULL;
811811
}
812812

813813
arg_count = type->func.args ? zend_hash_num_elements(type->func.args) : 0;
814814
if (arg_count < fcc.function_handler->common.required_num_args) {
815-
zend_throw_error(zend_ffi_exception_ce, "Attempt to assing an invalid callback, insufficient number of arguments");
815+
zend_throw_error(zend_ffi_exception_ce, "Attempt to assign an invalid callback, insufficient number of arguments");
816816
return NULL;
817817
}
818818

ext/reflection/php_reflection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3106,7 +3106,7 @@ static void reflection_method_invoke(INTERNAL_FUNCTION_PARAMETERS, int variadic)
31063106
} ZEND_HASH_FOREACH_END();
31073107
}
31083108

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

ext/standard/basic_functions.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4898,7 +4898,7 @@ PHP_FUNCTION(error_clear_last)
48984898
}
48994899
/* }}} */
49004900

4901-
/* {{{ proto mixed call_user_func(mixed function_name [, mixed parmeter] [, mixed ...])
4901+
/* {{{ proto mixed call_user_func(mixed function_name [, mixed parameter] [, mixed ...])
49024902
Call a user function which is the first parameter
49034903
Warning: This function is special-cased by zend_compile.c and so is usually bypassed */
49044904
PHP_FUNCTION(call_user_func)
@@ -4951,7 +4951,7 @@ PHP_FUNCTION(call_user_func_array)
49514951
}
49524952
/* }}} */
49534953

4954-
/* {{{ proto mixed forward_static_call(mixed function_name [, mixed parmeter] [, mixed ...]) U
4954+
/* {{{ proto mixed forward_static_call(mixed function_name [, mixed parameter] [, mixed ...]) U
49554955
Call a user function which is the first parameter */
49564956
PHP_FUNCTION(forward_static_call)
49574957
{

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);

ext/tidy/tidy.c

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,17 +379,25 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_config_count, 0, 0, 1)
379379
ZEND_ARG_INFO(0, object)
380380
ZEND_END_ARG_INFO()
381381

382-
ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_getopt, 0, 0, 1)
382+
ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_getopt_method, 0, 0, 1)
383383
ZEND_ARG_INFO(0, option)
384384
ZEND_END_ARG_INFO()
385385

386-
ZEND_BEGIN_ARG_INFO(arginfo_tidy_get_root, 0)
386+
ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_getopt, 0, 0, 2)
387+
ZEND_ARG_INFO(0, object)
388+
ZEND_ARG_INFO(0, option)
389+
ZEND_END_ARG_INFO()
390+
391+
ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_get_root, 0, 0, 1)
392+
ZEND_ARG_INFO(0, object)
387393
ZEND_END_ARG_INFO()
388394

389-
ZEND_BEGIN_ARG_INFO(arginfo_tidy_get_html, 0)
395+
ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_get_html, 0, 0, 1)
396+
ZEND_ARG_INFO(0, object)
390397
ZEND_END_ARG_INFO()
391398

392-
ZEND_BEGIN_ARG_INFO(arginfo_tidy_get_head, 0)
399+
ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_get_head, 0, 0, 1)
400+
ZEND_ARG_INFO(0, object)
393401
ZEND_END_ARG_INFO()
394402

395403
ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_get_body, 0, 0, 1)
@@ -435,7 +443,7 @@ static const zend_function_entry tidy_functions[] = {
435443
};
436444

437445
static const zend_function_entry tidy_funcs_doc[] = {
438-
TIDY_METHOD_MAP(getOpt, tidy_getopt, arginfo_tidy_getopt)
446+
TIDY_METHOD_MAP(getOpt, tidy_getopt, arginfo_tidy_getopt_method)
439447
TIDY_METHOD_MAP(cleanRepair, tidy_clean_repair, NULL)
440448
TIDY_DOC_ME(parseFile, arginfo_tidy_parse_file)
441449
TIDY_DOC_ME(parseString, arginfo_tidy_parse_string)

0 commit comments

Comments
 (0)