Skip to content

Commit 0b4778c

Browse files
committed
Fix #78880: Another bunch of spelling errors
1 parent 9d7e03c commit 0b4778c

File tree

134 files changed

+166
-166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+166
-166
lines changed

Zend/tests/019.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ var_dump( empty($point1->x) ); // expected: bool(true)
243243
// unset all members and check
244244
unset($point1->y);
245245
unset($point1->lable);
246-
// dump the objec to check that all variables are unset
246+
// dump the object to check that all variables are unset
247247
var_dump($point1);
248248
var_dump( isset($point1) ); // expected: bool(ture)
249249
var_dump( empty($point1) ); // expected: bool(false)

Zend/tests/022.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Implementating abstracting methods and optional parameters
2+
Implementing abstracting methods and optional parameters
33
--FILE--
44
<?php
55

Zend/tests/bug60536_002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
The same rules are applied for properties that are defined in the class hierarchy. Thus, if the properties are compatible, a notice is issued, if not a fatal error occures. (relevant with #60536)
2+
The same rules are applied for properties that are defined in the class hierarchy. Thus, if the properties are compatible, a notice is issued, if not a fatal error occurs. (relevant with #60536)
33
--FILE--
44
<?php
55

Zend/tests/bug60536_004.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Introducing new private variables of the same name in a subclass is ok, and does not lead to any output. That is consitent with normal inheritance handling. (relevant to #60536)
2+
Introducing new private variables of the same name in a subclass is ok, and does not lead to any output. That is consistent with normal inheritance handling. (relevant to #60536)
33
--FILE--
44
<?php
55

Zend/tests/bug60536_005.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Introducing new private variables of the same name in a subclass is ok, and does not lead to any output. That is consitent with normal inheritance handling. (relevant to #60536)
2+
Introducing new private variables of the same name in a subclass is ok, and does not lead to any output. That is consistent with normal inheritance handling. (relevant to #60536)
33
--FILE--
44
<?php
55

Zend/tests/bug64960.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ExceptionHandler {
1616
// this must be a class, closure does not trigger segfault
1717
set_exception_handler(new ExceptionHandler());
1818

19-
// exception must be throwed from error handler.
19+
// exception must be thrown from error handler.
2020
set_error_handler(function()
2121
{
2222
$e = new Exception;

Zend/tests/bug71930.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Bug #71930 (_zval_dtor_func: Assertion `(arr)->gc.refcount <= 1' failed)
33
--SKIPIF--
44
<?php
55
if (!extension_loaded("curl")) {
6-
die("skip Require a resource which is able to hold a callbck");
6+
die("skip Require a resource which is able to hold a callback");
77
}
88
?>
99
--FILE--

Zend/tests/bug76869.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #76869 (Incorrect bypassing protected method accessibilty check)
2+
Bug #76869 (Incorrect bypassing protected method accessibility check)
33
--FILE--
44
<?php
55
class A {

Zend/tests/closures/closure_from_callable.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class MagicCall
153153

154154

155155

156-
class PublicInvokable
156+
class PublicInvocable
157157
{
158158
public function __invoke($param1)
159159
{

Zend/tests/closures/closure_from_callable_basic.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ echo 'Closure is already a closure';
3737
$fn = Closure::fromCallable($closure);
3838
echo $fn(" OK".PHP_EOL);
3939

40-
echo 'Class with public invokable';
41-
$fn = Closure::fromCallable(new PublicInvokable);
40+
echo 'Class with public invocable';
41+
$fn = Closure::fromCallable(new PublicInvocable);
4242
echo $fn(" OK".PHP_EOL);
4343

4444
echo "Instance return private method as callable";
@@ -105,7 +105,7 @@ Access public instance method of parent object through parent:: OK
105105
Function that exists OK
106106
Function that exists with different spelling OK
107107
Closure is already a closure OK
108-
Class with public invokable OK
108+
Class with public invocable OK
109109
Instance return private method as callable OK
110110
Instance return private static method as callable OK
111111
Instance return protected static method as callable OK

Zend/tests/closures/closure_instantiate.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ try {
1212
// Instantiating a closure is an error, not an exception, so we shouldn't see this
1313
echo 'EXCEPTION: ', $e->getMessage();
1414
} catch (Throwable $e) {
15-
// This is the mesage that we should see for a caught error
15+
// This is the message that we should see for a caught error
1616
echo 'ERROR: ', $e->getMessage();
1717
}
1818

Zend/tests/constant_expressions_classes.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $classlist = [
1212
'A'=> 'class A { const HW = "this is A"; }',
1313
'B'=> 'class B extends A { const HW = parent::HW." extended by B"; }',
1414
'space1\C' => 'namespace space1; class C { const HW = "this is space1\C"; }',
15-
'D' => 'class D { const HW = \space1\C::HW." extented by D"; }',
15+
'D' => 'class D { const HW = \space1\C::HW." extended by D"; }',
1616
'trE' => 'trait trE { public static function getHW() { return parent::HW; } }',
1717
'E' => 'class E extends B { use trE; }',
1818
'F' => 'class F { const XX = "this is F"; }',
@@ -36,6 +36,6 @@ printf("G::get_me() = %s\n", G::get_me());
3636
?>
3737
--EXPECT--
3838
B::HW = this is A extended by B
39-
D::HW = this is space1\C extented by D
39+
D::HW = this is space1\C extended by D
4040
E::getHW() = this is A extended by B
4141
G::get_me() = got this is F extended by G

Zend/tests/ns_094.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Type group use declarations should not allow override on inner itens
2+
Type group use declarations should not allow override on inner items
33
--FILE--
44
<?php
55

Zend/tests/traits/bugs/alias-semantics02.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Semantic of alias operation is to provide an additional identifier for the
33
method body of the original method.
4-
It should also work incase the method is fully qualified.
4+
It should also work in case the method is fully qualified.
55
--FILE--
66
<?php
77
error_reporting(E_ALL);

Zend/tests/traits/conflict002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Overwridden methods do not cause a conflict.
2+
Overwritten methods do not cause a conflict.
33
--FILE--
44
<?php
55
error_reporting(E_ALL);

Zend/tests/traits/inheritance001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Trait method overwridden by a method defined in the class.
2+
Trait method overwritten by a method defined in the class.
33
--FILE--
44
<?php
55
error_reporting(E_ALL);

Zend/tests/traits/property009.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Handling of public fields with traits needs to have same semantics as with normal inheritance, however, we do add strict warnings since it is easier to run into something unexpeted with changing traits.
2+
Handling of public fields with traits needs to have same semantics as with normal inheritance, however, we do add strict warnings since it is easier to run into something unexpected with changing traits.
33
--FILE--
44
<?php
55

Zend/tests/type_declarations/strict_include_explicit_weak.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ declare(strict_types=1);
88
// file that's explicitly weak
99
require 'strict_include_explicit_weak_2.inc';
1010

11-
// calls within that file should stay weak, despite being included by strict fille
11+
// calls within that file should stay weak, despite being included by strict file
1212
?>
1313
--EXPECT--
1414
Success!

Zend/tests/type_declarations/typed_properties_025.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Test typed properties type must preceed first declaration in group
2+
Test typed properties type must precede first declaration in group
33
--FILE--
44
<?php
55
class Foo {

Zend/tests/type_declarations/typed_properties_036.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Test unitialized typed properties normal foreach must not be yielded
2+
Test uninitialized typed properties normal foreach must not be yielded
33
--FILE--
44
<?php
55
$foo = new class {

Zend/zend_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ static zend_always_inline uint32_t zval_gc_info(uint32_t gc_type_info) {
658658
/* zval_gc_flags(zval.value->gc.u.type_info) (common flags) */
659659
#define GC_COLLECTABLE (1<<4)
660660
#define GC_PROTECTED (1<<5) /* used for recursion detection */
661-
#define GC_IMMUTABLE (1<<6) /* can't be canged in place */
661+
#define GC_IMMUTABLE (1<<6) /* can't be changed in place */
662662
#define GC_PERSISTENT (1<<7) /* allocated using malloc */
663663
#define GC_PERSISTENT_LOCAL (1<<8) /* persistent, but thread-local */
664664

ext/dom/dom_fe.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ PHP_METHOD(domdocument, getElementById);
9494
PHP_METHOD(domdocument, adoptNode);
9595
PHP_METHOD(domdocument, normalizeDocument);
9696
PHP_METHOD(domdocument, __construct);
97-
/* convienience methods */
97+
/* convenience methods */
9898
PHP_METHOD(domdocument, load);
9999
PHP_METHOD(domdocument, save);
100100
PHP_METHOD(domdocument, loadXML);

ext/dom/tests/DOMNode_hasChildNodes_basic.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ include('skipif.inc');
88
<?php
99

1010
/* Create an XML document
11-
* with strcuture
11+
* with structure
1212
* <book>
1313
* <title>This is the title</title>
1414
* </book>

ext/filter/tests/022.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ filter_var() and FILTER_SANITIZE_EMAIL
77

88
var_dump(filter_var("a@b.c", FILTER_SANITIZE_EMAIL));
99
var_dump(filter_var("a[!@#$%^&*()@a@#$%^&*(.com@#$%^&*(", FILTER_SANITIZE_EMAIL));
10-
var_dump(filter_var("white space here \ \ \" som more", FILTER_SANITIZE_EMAIL));
10+
var_dump(filter_var("white space here \ \ \" some more", FILTER_SANITIZE_EMAIL));
1111
var_dump(filter_var("", FILTER_SANITIZE_EMAIL));
1212
var_dump(filter_var("123456789000000", FILTER_SANITIZE_EMAIL));
1313

@@ -16,7 +16,7 @@ echo "Done\n";
1616
--EXPECT--
1717
string(5) "a@b.c"
1818
string(30) "a[!@#$%^&*@a@#$%^&*.com@#$%^&*"
19-
string(21) "whitespaceheresommore"
19+
string(22) "whitespaceheresomemore"
2020
string(0) ""
2121
string(15) "123456789000000"
2222
Done

ext/gmp/tests/003.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Check for number base recognition
2020
$test[] = gmp_init("1234");
2121
$test[] = gmp_init("1234", 10);
2222

23-
/* Hexidecimal */
23+
/* Hexadecimal */
2424
$test[] = gmp_init("0x4d2");
2525
$test[] = gmp_init("0x4d2", 16);
2626
$test[] = gmp_init("4d2");

ext/imap/php_imap.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function imap_fetchmime($stream_id, int $msg_no, string $section, int $options =
5050

5151
/**
5252
* @param resource $stream_id
53-
* @todo: should $file be `resouce|string`? it looks like it tries to accept anything?
53+
* @todo: should $file be `resource|string`? it looks like it tries to accept anything?
5454
*/
5555
function imap_savebody($stream_id, $file, int $msg_no, string $section = '', int $options = 0): bool {}
5656

ext/mysqli/tests/bug49442.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ mysqli.max_persistent=1
6767
mysqlnd makes a connection created through mysql_init()/mysqli_real_connect() always a 'persistent' one.
6868
At this point 'persistent' is not to be confused with what a user calls a 'persistent' - in this case
6969
'persistent' means that mysqlnd uses malloc() instead of emalloc(). nothing else. ext/mysqli will
70-
not consider it as a 'persistent' connection in a user sense, ext/mysqli will not appy max_persistent etc.
70+
not consider it as a 'persistent' connection in a user sense, ext/mysqli will not apply max_persistent etc.
7171
Its only about malloc() vs. emalloc().
7272
7373
However, the bug is about malloc() and efree(). You can make make mysqlnd use malloc() by either using

ext/mysqli/tests/bug51647.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ $link->close();
6565
if (!$row = $res->fetch_assoc())
6666
printf("[006] [%d] %s\n", $link->errno, $link->error);
6767
if (!strlen($row["Value"]))
68-
printf("[007] Empty cipher. No encrytion!");
68+
printf("[007] Empty cipher. No encryption!");
6969
var_dump($row);
7070
}
7171

@@ -95,7 +95,7 @@ $link->close();
9595
if (!$row = $res->fetch_assoc())
9696
printf("[012] [%d] %s\n", $link->errno, $link->error);
9797
if (!strlen($row["Value"]))
98-
printf("[013] Empty cipher. No encrytion!");
98+
printf("[013] Empty cipher. No encryption!");
9999
var_dump($row);
100100
}
101101

ext/mysqli/tests/mysqli_stmt_result_metadata_sqltests.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ die("skip Check again when the Klingons visit earth - http://bugs.mysql.com/bug.
7575
mysqli_free_result($res);
7676

7777
if ($meta != $expected_lib) {
78-
printf("[%04d - %s] Metadata differes from expected values\n",
78+
printf("[%04d - %s] Metadata differs from expected values\n",
7979
$offset + 5, $sql);
8080
var_dump($meta);
8181
var_dump($expected_lib);

ext/oci8/oci8_statement.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ int php_oci_bind_post_exec(zval *data)
10901090
break;
10911091
}
10921092
} else if ((Z_TYPE_P(zv) == IS_TRUE) || (Z_TYPE_P(zv) == IS_FALSE)) {
1093-
/* This convetrsion is done on purpose (ext/oci8 uses LVAL as a temorary value) */
1093+
/* This convetrsion is done on purpose (ext/oci8 uses LVAL as a temporary value) */
10941094
if (Z_LVAL_P(zv) == 0)
10951095
ZVAL_BOOL(zv, FALSE);
10961096
else if (Z_LVAL_P(zv) == 1)
@@ -1409,12 +1409,12 @@ sb4 php_oci_bind_in_callback(
14091409
} else if (phpbind->statement != 0) {
14101410
/* RSET */
14111411
*bufpp = phpbind->statement;
1412-
*alenp = -1; /* seems to be allright */
1412+
*alenp = -1; /* seems to be alright */
14131413
*indpp = (dvoid *)&phpbind->indicator;
14141414
} else {
14151415
/* descriptor bind */
14161416
*bufpp = phpbind->descriptor;
1417-
*alenp = -1; /* seems to be allright */
1417+
*alenp = -1; /* seems to be alright */
14181418
*indpp = (dvoid *)&phpbind->indicator;
14191419
}
14201420

ext/oci8/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ to conform with the license.
713713
</stability>
714714
<license uri="http://www.php.net/license">PHP</license>
715715
<notes>
716-
Bump PHP OCI8 2.0 mininum requirements to PHP 5.2 and Oracle client
716+
Bump PHP OCI8 2.0 minimum requirements to PHP 5.2 and Oracle client
717717
library 10.2. (Use OCI8 1.4 for older PHP version support or if only
718718
Oracle 9.2 client libraries are available.)
719719

ext/oci8/tests/bug44113.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ oci8_test_sql_execute($c, $stmtarray);
2121

2222
// Run Test
2323
// The test can take some time to complete and can exceed PHP's test
24-
// timout limit on slow networks.
24+
// timeout limit on slow networks.
2525

2626
for ($x = 0; $x < 70000; $x++) {
2727
if (!($var = oci_new_collection($c, 'BUG44113_LIST_T'))) {

ext/oci8/tests/drcp_conn_close1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require __DIR__."/details.inc";
1313
// Test will open a connection
1414
// Close the connection
1515
// Open another connection
16-
// With oci_close() being a no-op, the same conneciton will be returned
16+
// With oci_close() being a no-op, the same connection will be returned
1717

1818

1919
echo "This is with a OCI_CONNECT\n";

ext/oci8/tests/drcp_conn_close2.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require __DIR__."/details.inc";
1414
// Close the connection
1515
// Open another connection
1616
// With oci_close() the connection is released to the pool and hence the
17-
// the second conneciton will be different
17+
// the second connection will be different
1818

1919

2020
// OCI_CONNECT

ext/oci8/tests/drcp_pconn_close1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require __DIR__."/details.inc";
1313
// Test will open a persistent connection
1414
// Close the connection
1515
// Open another connection
16-
// With oci_close() being a no-op, the same conneciton will be returned
16+
// With oci_close() being a no-op, the same connection will be returned
1717

1818
echo "This is with a OCI_PCONNECT\n";
1919
var_dump($conn1 = oci_pconnect($user,$password,$dbase));

ext/oci8/tests/password_new.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
oci_password_change()
33
--SKIPIF--
44
<?php
5-
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on thes
5+
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
66
require(__DIR__.'/skipif.inc');
77
require(__DIR__.'/connect.inc');
88
if (empty($dbase)) die ("skip requires database connection string be set");

ext/oci8/tests/password_old.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
ocipasswordchange()
33
--SKIPIF--
44
<?php
5-
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on thes
5+
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
66
require(__DIR__.'/skipif.inc');
77
require(__DIR__.'/connect.inc');
88
if (empty($dbase)) die ("skip requires database connection string be set");

ext/opcache/Optimizer/optimize_temp_vars_5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void zend_optimize_temporary_variables(zend_op_array *op_array, zend_optimizer_c
102102
if (!zend_bitset_in(valid_T, currT)) {
103103
int use_new_var = 0;
104104

105-
/* Code in "finally" blocks may modify temorary variables.
105+
/* Code in "finally" blocks may modify temporary variables.
106106
* We allocate new temporaries for values that need to
107107
* relive FAST_CALLs.
108108
*/

ext/opcache/Optimizer/zend_cfg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static void zend_mark_reachable(zend_op *opcodes, zend_cfg *cfg, zend_basic_bloc
9393
b = succ;
9494
break;
9595
} else {
96-
/* Recusively check reachability */
96+
/* Recursively check reachability */
9797
if (!(succ->flags & ZEND_BB_REACHABLE)) {
9898
zend_mark_reachable(opcodes, cfg, succ);
9999
}

ext/opcache/Optimizer/zend_ssa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ int zend_build_ssa(zend_arena **arena, const zend_script *script, const zend_op_
854854
ALLOCA_FLAG(var_use_heap)
855855

856856
if ((blocks_count * (op_array->last_var + op_array->T)) > 4 * 1024 * 1024) {
857-
/* Don't buld SSA for very big functions */
857+
/* Don't build SSA for very big functions */
858858
return FAILURE;
859859
}
860860

ext/opcache/Optimizer/zend_ssa.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static zend_always_inline zend_bool zend_ssa_is_no_val_use(const zend_op *opline
215215
if (opline->opcode == ZEND_ASSIGN || opline->opcode == ZEND_UNSET_CV) {
216216
return ssa_op->op1_use == var && ssa_op->op2_use != var;
217217
}
218-
// TODO: Reenable this after changing the SSA structure.
218+
// TODO: Re-enable this after changing the SSA structure.
219219
/*if (opline->opcode == ZEND_FE_FETCH_R) {
220220
return ssa_op->op2_use == var && ssa_op->op1_use != var;
221221
}*/

0 commit comments

Comments
 (0)