diff --git a/ext/calendar/calendar.c b/ext/calendar/calendar.c index f9212f621f7ea..a0503dab0600f 100644 --- a/ext/calendar/calendar.c +++ b/ext/calendar/calendar.c @@ -398,7 +398,7 @@ static char *heb_number_to_chars(int n, int fl, char **ret) n -= 400; } -/* meot (hundreads) case */ +/* meot (hundreds) case */ if (n >= 100) { *p = alef_bet[18 + n / 100]; p++; diff --git a/ext/calendar/julian.c b/ext/calendar/julian.c index ac580aa08e061..baff0771532ef 100644 --- a/ext/calendar/julian.c +++ b/ext/calendar/julian.c @@ -67,7 +67,7 @@ * the Julian calendar. * * The details are unknown, but the lengths of the months were adjusted - * until they finally stablized in 8 A.D. with their current lengths: + * until they finally stabilized in 8 A.D. with their current lengths: * * January 31 * February 28/29 diff --git a/ext/com_dotnet/tests/gh8778.phpt b/ext/com_dotnet/tests/gh8778.phpt index 7198f2add4bee..72f89f506e853 100644 --- a/ext/com_dotnet/tests/gh8778.phpt +++ b/ext/com_dotnet/tests/gh8778.phpt @@ -1,5 +1,5 @@ --TEST-- -Bug GH-8778 (Integer arithmethic with large number variants fails) +Bug GH-8778 (Integer arithmetic with large number variants fails) --EXTENSIONS-- com_dotnet --SKIPIF-- diff --git a/ext/ctype/tests/ctype_xdigit_variation1.phpt b/ext/ctype/tests/ctype_xdigit_variation1.phpt index 3dbd7cec37667..0db93fd7db25f 100644 --- a/ext/ctype/tests/ctype_xdigit_variation1.phpt +++ b/ext/ctype/tests/ctype_xdigit_variation1.phpt @@ -1,5 +1,5 @@ --TEST-- -Test ctype_xdigit() function : usage variations - different data typse as $c arg +Test ctype_xdigit() function : usage variations - different data types as $c arg --EXTENSIONS-- ctype --FILE-- diff --git a/ext/curl/interface.c b/ext/curl/interface.c index e47c9c43bc8a9..0187d4dd56daa 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -61,7 +61,7 @@ #ifdef __GNUC__ /* don't complain about deprecated CURLOPT_* we're exposing to PHP; we - need to keep using those to avoid breaking PHP API compatibiltiy */ + need to keep using those to avoid breaking PHP API compatibility */ # pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif diff --git a/ext/curl/tests/bug71144.phpt b/ext/curl/tests/bug71144.phpt index 1684ccbbb2d1b..b808aec2637e8 100644 --- a/ext/curl/tests/bug71144.phpt +++ b/ext/curl/tests/bug71144.phpt @@ -1,5 +1,5 @@ --TEST-- -Bug #71144 (Sementation fault when using cURL with ZTS) +Bug #71144 (Segmentation fault when using cURL with ZTS) --DESCRIPTION-- Since Curl 7.62, CURLOPT_DNS_USE_GLOBAL_CACHE has no effect, and is silently ignored. diff --git a/ext/curl/tests/curl_copy_handle_variation2.phpt b/ext/curl/tests/curl_copy_handle_variation2.phpt index 4acf87a1e4c50..407f1e3bf88dc 100644 --- a/ext/curl/tests/curl_copy_handle_variation2.phpt +++ b/ext/curl/tests/curl_copy_handle_variation2.phpt @@ -6,7 +6,7 @@ Francesco Fullone ff@ideato.it --EXTENSIONS-- curl --DESCRIPTION-- -the only way to test if a option is setten on a curl handle is using the curl_getinfo() function. +the only way to test if a option is set on a curl handle is using the curl_getinfo() function. but this can only check on a limited amount of options... --FILE-- @@ -40,4 +40,4 @@ object(DateTimeZone)#%d (2) { ["timezone"]=> string(3) "GMT" } -TEST PASSED : Objects equal but not indetical +TEST PASSED : Objects equal but not identical diff --git a/ext/date/tests/DateTimeZone_serialize_type_1.phpt b/ext/date/tests/DateTimeZone_serialize_type_1.phpt index f35a133cfb4fd..0243f68764a2d 100644 --- a/ext/date/tests/DateTimeZone_serialize_type_1.phpt +++ b/ext/date/tests/DateTimeZone_serialize_type_1.phpt @@ -12,7 +12,7 @@ var_dump($serialized); $tz2 = unserialize($serialized); var_dump($tz2); -// Try to use unserialzied object +// Try to use unserialized object var_dump( $tz2->getName() ); ?> diff --git a/ext/date/tests/DateTimeZone_serialize_type_2.phpt b/ext/date/tests/DateTimeZone_serialize_type_2.phpt index a823ee08c022a..5240fa954420a 100644 --- a/ext/date/tests/DateTimeZone_serialize_type_2.phpt +++ b/ext/date/tests/DateTimeZone_serialize_type_2.phpt @@ -12,7 +12,7 @@ var_dump($serialized); $tz2 = unserialize($serialized); var_dump($tz2); -// Try to use unserialzied object +// Try to use unserialized object var_dump( $tz2->getName() ); ?> diff --git a/ext/date/tests/DateTimeZone_serialize_type_3.phpt b/ext/date/tests/DateTimeZone_serialize_type_3.phpt index 92ac958dc34af..e1c6719a03d42 100644 --- a/ext/date/tests/DateTimeZone_serialize_type_3.phpt +++ b/ext/date/tests/DateTimeZone_serialize_type_3.phpt @@ -12,7 +12,7 @@ var_dump($serialized); $tz2 = unserialize($serialized); var_dump($tz2); -// Try to use unserialzied object +// Try to use unserialized object var_dump( $tz2->getName() ); ?> diff --git a/ext/date/tests/DateTime_serialize.phpt b/ext/date/tests/DateTime_serialize.phpt index 8424a3e082e74..427b43f70e16c 100644 --- a/ext/date/tests/DateTime_serialize.phpt +++ b/ext/date/tests/DateTime_serialize.phpt @@ -12,7 +12,7 @@ var_dump($serialized); $date2 = unserialize($serialized); var_dump($date2); -// Try to use unserialzied object +// Try to use unserialized object var_dump( $date2->format( "F j, Y, g:i a") ); ?> diff --git a/ext/date/tests/ExtendDateTime.phpt b/ext/date/tests/ExtendDateTime.phpt index 70ed2793e6efe..ba445338403e7 100644 --- a/ext/date/tests/ExtendDateTime.phpt +++ b/ext/date/tests/ExtendDateTime.phpt @@ -1,5 +1,5 @@ --TEST-- -Extendig DatTime and calling __set_state without args +Extending DateTime and calling __set_state without args --CREDITS-- Gabriel Caruso (carusogabriel34@gmail.com) --FILE-- diff --git a/ext/date/tests/bug36224.phpt b/ext/date/tests/bug36224.phpt index 1690f4e7b2ce5..7fe6165fb42ae 100644 --- a/ext/date/tests/bug36224.phpt +++ b/ext/date/tests/bug36224.phpt @@ -1,5 +1,5 @@ --TEST-- -Bug #36224 (date(DATE_ATOM) gives wrong resulsts) +Bug #36224 (date(DATE_ATOM) gives wrong results) --FILE-- document); ZVAL_BOOL(retval, doc_prop->substituteentities); return SUCCESS; } -zend_result dom_document_substitue_entities_write(dom_object *obj, zval *newval) +zend_result dom_document_substitute_entities_write(dom_object *obj, zval *newval) { if (obj->document) { dom_doc_propsptr doc_prop = dom_get_doc_props(obj->document); diff --git a/ext/dom/dom_properties.h b/ext/dom/dom_properties.h index d711aa1a2e55c..f9402c929d937 100644 --- a/ext/dom/dom_properties.h +++ b/ext/dom/dom_properties.h @@ -58,8 +58,8 @@ zend_result dom_document_preserve_whitespace_read(dom_object *obj, zval *retval) zend_result dom_document_preserve_whitespace_write(dom_object *obj, zval *newval); zend_result dom_document_recover_read(dom_object *obj, zval *retval); zend_result dom_document_recover_write(dom_object *obj, zval *newval); -zend_result dom_document_substitue_entities_read(dom_object *obj, zval *retval); -zend_result dom_document_substitue_entities_write(dom_object *obj, zval *newval); +zend_result dom_document_substitute_entities_read(dom_object *obj, zval *retval); +zend_result dom_document_substitute_entities_write(dom_object *obj, zval *newval); /* html5 document properties */ zend_result dom_html_document_encoding_write(dom_object *obj, zval *retval); diff --git a/ext/dom/element.c b/ext/dom/element.c index d3bcad34ed999..c05059f55a4db 100644 --- a/ext/dom/element.c +++ b/ext/dom/element.c @@ -1747,7 +1747,7 @@ PHP_METHOD(DOMElement, toggleAttribute) if (follow_spec) { xmlSetNsProp(thisp, NULL, BAD_CAST qname, NULL); } else { - /* The behaviour for namespaces isn't defined by spec, but this is based on observing browers behaviour. + /* The behaviour for namespaces isn't defined by spec, but this is based on observing browsers' behaviour. * It follows the same rules when you'd manually add an attribute using the other APIs. */ int len; const xmlChar *split = xmlSplitQName3((const xmlChar *) qname, &len); diff --git a/ext/dom/infra.c b/ext/dom/infra.c index eb276d179464b..9bb1942fe01d8 100644 --- a/ext/dom/infra.c +++ b/ext/dom/infra.c @@ -46,7 +46,7 @@ zend_string *dom_strip_and_collapse_ascii_whitespace(zend_string *input) while (current < end) { /* Copy non-whitespace */ size_t non_whitespace_len = strcspn(current, ascii_whitespace); - /* If the pointers are equal, we still haven't encountered collapsable or strippable whitespace. */ + /* If the pointers are equal, we still haven't encountered collapsible or strippable whitespace. */ if (write_ptr != current) { memmove(write_ptr, current, non_whitespace_len); } diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c index 8842f91ab8c15..30369f410cddd 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -960,7 +960,7 @@ PHP_MINIT_FUNCTION(dom) DOM_REGISTER_PROP_HANDLER(&dom_document_prop_handlers, "resolveExternals", dom_document_resolve_externals_read, dom_document_resolve_externals_write); DOM_REGISTER_PROP_HANDLER(&dom_document_prop_handlers, "preserveWhiteSpace", dom_document_preserve_whitespace_read, dom_document_preserve_whitespace_write); DOM_REGISTER_PROP_HANDLER(&dom_document_prop_handlers, "recover", dom_document_recover_read, dom_document_recover_write); - DOM_REGISTER_PROP_HANDLER(&dom_document_prop_handlers, "substituteEntities", dom_document_substitue_entities_read, dom_document_substitue_entities_write); + DOM_REGISTER_PROP_HANDLER(&dom_document_prop_handlers, "substituteEntities", dom_document_substitute_entities_read, dom_document_substitute_entities_write); DOM_REGISTER_PROP_HANDLER(&dom_document_prop_handlers, "firstElementChild", dom_parent_node_first_element_child_read, NULL); DOM_REGISTER_PROP_HANDLER(&dom_document_prop_handlers, "lastElementChild", dom_parent_node_last_element_child_read, NULL); DOM_REGISTER_PROP_HANDLER(&dom_document_prop_handlers, "childElementCount", dom_parent_node_child_element_count, NULL); @@ -2095,7 +2095,7 @@ int dom_validate_and_extract(const zend_string *namespace, const zend_string *qn *localName = xmlSplitQName2(BAD_CAST ZSTR_VAL(qname), prefix); /* 6. If prefix is non-null and namespace is null, then throw a "NamespaceError" DOMException. - * Note that null namespace means empty string here becaue of step 1. */ + * Note that null namespace means empty string here because of step 1. */ if (*prefix != NULL && ZSTR_VAL(namespace)[0] == '\0') { return NAMESPACE_ERR; } diff --git a/ext/dom/tests/DOMDocument_saveHTML_variant2.phpt b/ext/dom/tests/DOMDocument_saveHTML_variant2.phpt index 375ff2289b223..dcea0875c36d4 100644 --- a/ext/dom/tests/DOMDocument_saveHTML_variant2.phpt +++ b/ext/dom/tests/DOMDocument_saveHTML_variant2.phpt @@ -1,5 +1,5 @@ --TEST-- -DOMDocument::saveHTML() vs DOMDocumet::saveXML() +DOMDocument::saveHTML() vs DOMDocument::saveXML() --EXTENSIONS-- dom --FILE-- diff --git a/ext/dom/tests/bug69846.phpt b/ext/dom/tests/bug69846.phpt index 2f41433e35021..2e7874246fa8e 100644 --- a/ext/dom/tests/bug69846.phpt +++ b/ext/dom/tests/bug69846.phpt @@ -1,5 +1,5 @@ --TEST-- -Bug #69846 Segmenation fault (access violation) when iterating over DOMNodeList +Bug #69846 Segmentation fault (access violation) when iterating over DOMNodeList --EXTENSIONS-- dom --FILE-- diff --git a/ext/dom/tests/bug79968.phpt b/ext/dom/tests/bug79968.phpt index 5ce1bcb7c6e9b..97759dbfb179a 100644 --- a/ext/dom/tests/bug79968.phpt +++ b/ext/dom/tests/bug79968.phpt @@ -1,5 +1,5 @@ --TEST-- -dom: Bug #79968 - Crash when calling before without valid hierachy +dom: Bug #79968 - Crash when calling before without valid hierarchy --EXTENSIONS-- dom --FILE-- diff --git a/ext/dom/tests/modern/spec/gh11404_1.phpt b/ext/dom/tests/modern/spec/gh11404_1.phpt index ec9c0a30f7568..ff8123ca78d72 100644 --- a/ext/dom/tests/modern/spec/gh11404_1.phpt +++ b/ext/dom/tests/modern/spec/gh11404_1.phpt @@ -1,5 +1,5 @@ --TEST-- -GH-11404 (DOMDocument::savexml and friends ommit xmlns="" declaration for null namespace, creating incorrect xml representation of the DOM) +GH-11404 (DOMDocument::savexml and friends omit xmlns="" declaration for null namespace, creating incorrect xml representation of the DOM) --EXTENSIONS-- dom --FILE-- diff --git a/ext/dom/tests/modern/spec/gh11404_2.phpt b/ext/dom/tests/modern/spec/gh11404_2.phpt index 946a3a0140a6e..a3ba22ea5b523 100644 --- a/ext/dom/tests/modern/spec/gh11404_2.phpt +++ b/ext/dom/tests/modern/spec/gh11404_2.phpt @@ -1,5 +1,5 @@ --TEST-- -GH-11404 (DOMDocument::savexml and friends ommit xmlns="" declaration for null namespace, creating incorrect xml representation of the DOM) +GH-11404 (DOMDocument::savexml and friends omit xmlns="" declaration for null namespace, creating incorrect xml representation of the DOM) --EXTENSIONS-- dom --FILE-- diff --git a/ext/dom/xpath.c b/ext/dom/xpath.c index 33df515376d74..fda330c061346 100644 --- a/ext/dom/xpath.c +++ b/ext/dom/xpath.c @@ -353,7 +353,7 @@ static void php_xpath_eval(INTERNAL_FUNCTION_PARAMETERS, int type, bool modern) xmlNsPtr original = (xmlNsPtr) node; /* Make sure parent dom object exists, so we can take an extra reference. */ - zval parent_zval; /* don't destroy me, my lifetime is transfered to the fake namespace decl */ + zval parent_zval; /* don't destroy me, my lifetime is transferred to the fake namespace decl */ php_dom_create_object(nsparent, &parent_zval, &intern->dom); dom_object *parent_intern = Z_DOMOBJ_P(&parent_zval); diff --git a/ext/dom/xpath_callbacks.c b/ext/dom/xpath_callbacks.c index cd2ecf4335df7..036326695276b 100644 --- a/ext/dom/xpath_callbacks.c +++ b/ext/dom/xpath_callbacks.c @@ -350,7 +350,7 @@ static zval *php_dom_xpath_callback_fetch_args(xmlXPathParserContextPtr ctxt, ui xmlNsPtr original = (xmlNsPtr) node; /* Make sure parent dom object exists, so we can take an extra reference. */ - zval parent_zval; /* don't destroy me, my lifetime is transfered to the fake namespace decl */ + zval parent_zval; /* don't destroy me, my lifetime is transferred to the fake namespace decl */ php_dom_create_object(nsparent, &parent_zval, intern); dom_object *parent_intern = Z_DOMOBJ_P(&parent_zval);