Skip to content

ext/[cd]*: fix a bunch of typos #16298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/calendar/calendar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down
2 changes: 1 addition & 1 deletion ext/calendar/julian.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ext/com_dotnet/tests/gh8778.phpt
Original file line number Diff line number Diff line change
@@ -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--
Expand Down
2 changes: 1 addition & 1 deletion ext/ctype/tests/ctype_xdigit_variation1.phpt
Original file line number Diff line number Diff line change
@@ -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--
Expand Down
2 changes: 1 addition & 1 deletion ext/curl/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion ext/curl/tests/bug71144.phpt
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion ext/curl/tests/curl_copy_handle_variation2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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--
<?php
Expand Down
2 changes: 1 addition & 1 deletion ext/curl/tests/curl_multi_setopt_callables.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--TEST--
Test curl_multi_setopt() with options that take callabes
Test curl_multi_setopt() with options that take callables
--EXTENSIONS--
curl
--FILE--
Expand Down
2 changes: 1 addition & 1 deletion ext/curl/tests/curl_setopt_callables.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--TEST--
Test curl_setopt(_array)() with options that take callabes
Test curl_setopt(_array)() with options that take callables
--EXTENSIONS--
curl
--FILE--
Expand Down
2 changes: 1 addition & 1 deletion ext/date/php_date.c
Original file line number Diff line number Diff line change
Expand Up @@ -2699,7 +2699,7 @@ PHP_METHOD(DateTime, createFromInterface)
}
/* }}} */

/* {{{ Creates new DateTime object from given unix timetamp */
/* {{{ Creates new DateTime object from given unix timestamp */
PHP_METHOD(DateTime, createFromTimestamp)
{
zval *value;
Expand Down
4 changes: 2 additions & 2 deletions ext/date/tests/DateTimeZone_clone_basic1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if ($clone != $orig) {
}else if ($clone === $orig) {
echo "TEST FAILED : objects identical\n";
} else {
echo "TEST PASSED : Objects equal but not indetical\n";
echo "TEST PASSED : Objects equal but not identical\n";
}

?>
Expand All @@ -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
2 changes: 1 addition & 1 deletion ext/date/tests/DateTimeZone_serialize_type_1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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() );

?>
Expand Down
2 changes: 1 addition & 1 deletion ext/date/tests/DateTimeZone_serialize_type_2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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() );

?>
Expand Down
2 changes: 1 addition & 1 deletion ext/date/tests/DateTimeZone_serialize_type_3.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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() );

?>
Expand Down
2 changes: 1 addition & 1 deletion ext/date/tests/DateTime_serialize.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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") );

?>
Expand Down
2 changes: 1 addition & 1 deletion ext/date/tests/ExtendDateTime.phpt
Original file line number Diff line number Diff line change
@@ -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--
Expand Down
2 changes: 1 addition & 1 deletion ext/date/tests/bug36224.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--TEST--
Bug #36224 (date(DATE_ATOM) gives wrong resulsts)
Bug #36224 (date(DATE_ATOM) gives wrong results)
--FILE--
<?php
date_default_timezone_set("Europe/Oslo");
Expand Down
2 changes: 1 addition & 1 deletion ext/date/tests/date_isodate_set_basic1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ echo "*** Testing date_isodate_set() : basic functionality ***\n";
//Set the default time zone
date_default_timezone_set("Europe/London");

// Create a deate object
// Create a date object
$datetime = date_create("2009-01-30 17:57:32");

// Which month is week 40 ?
Expand Down
2 changes: 1 addition & 1 deletion ext/date/tests/getdate_variation4.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--TEST--
Test getdate() function : usage variation - Verifyig by supplying year-wise sample time stamps since Unix epoch time
Test getdate() function : usage variation - Verifying by supplying year-wise sample time stamps since Unix epoch time
--FILE--
<?php
echo "*** Testing getdate() : usage variation ***\n";
Expand Down
2 changes: 1 addition & 1 deletion ext/date/tests/getdate_variation5.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--TEST--
Test getdate() function : usage variation - Verifyig with different timezones on Unix epoch timestamp
Test getdate() function : usage variation - Verifying with different timezones on Unix epoch timestamp
--FILE--
<?php
echo "*** Testing getdate() : usage variation ***\n";
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/dba.c
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ PHP_FUNCTION(dba_delete)
/* }}} */

/* {{{ If not inifile: Insert value as key, return false, if key exists already
If inifile: Add vakue as key (next instance of key) */
If inifile: Add value as key (next instance of key) */
PHP_FUNCTION(dba_insert)
{
php_dba_update(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
Expand Down
4 changes: 2 additions & 2 deletions ext/dom/document.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,14 +349,14 @@ zend_result dom_document_recover_write(dom_object *obj, zval *newval)
/* {{{ substituteEntities boolean
readonly=no
*/
zend_result dom_document_substitue_entities_read(dom_object *obj, zval *retval)
zend_result dom_document_substitute_entities_read(dom_object *obj, zval *retval)
{
libxml_doc_props const* doc_prop = dom_get_doc_props_read_only(obj->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);
Expand Down
4 changes: 2 additions & 2 deletions ext/dom/dom_properties.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/element.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/infra.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions ext/dom/php_dom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/tests/DOMDocument_saveHTML_variant2.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--TEST--
DOMDocument::saveHTML() vs DOMDocumet::saveXML()
DOMDocument::saveHTML() vs DOMDocument::saveXML()
--EXTENSIONS--
dom
--FILE--
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/tests/bug69846.phpt
Original file line number Diff line number Diff line change
@@ -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--
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/tests/bug79968.phpt
Original file line number Diff line number Diff line change
@@ -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--
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/tests/modern/spec/gh11404_1.phpt
Original file line number Diff line number Diff line change
@@ -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--
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/tests/modern/spec/gh11404_2.phpt
Original file line number Diff line number Diff line change
@@ -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--
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/xpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion ext/dom/xpath_callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down