Skip to content

Commit dabc28d

Browse files
committed
Fix #78880: Spelling error report
We fix the most often occuring typos according to a recent codespell report[1] in tests, code comments and documentation. [1] <https://fossies.org/linux/test/php-src-master-f8f48ce.191129.tar.gz/codespell.html>.
1 parent eff56f8 commit dabc28d

File tree

168 files changed

+781
-781
lines changed

Some content is hidden

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

168 files changed

+781
-781
lines changed

EXTENSIONS

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ SINCE: 5.3
6060
-------------------------------------------------------------------------------
6161
EXTENSION: phpdbg
6262
PRIMARY MAINTAINER: Joe Watkins <[email protected]>, Bob Weinand <[email protected]>
63-
MAINTENANCE: Unkown
63+
MAINTENANCE: Unknown
6464
STATUS: 5.6
6565
-------------------------------------------------------------------------------
6666

@@ -431,7 +431,7 @@ STATUS: Working
431431
SINCE: 4.0.2
432432
-------------------------------------------------------------------------------
433433
EXTENSION: readline
434-
PRIMARY MAINTAINER: Unkown
434+
PRIMARY MAINTAINER: Unknown
435435
MAINTENANCE: Unknown
436436
STATUS: Working
437437
-------------------------------------------------------------------------------
@@ -480,17 +480,17 @@ STATUS: Working
480480
SINCE: 5.0.0
481481
-------------------------------------------------------------------------------
482482
EXTENSION: sysvmsg
483-
PRIMARY MAINTAINER: Unkown
483+
PRIMARY MAINTAINER: Unknown
484484
MAINTENANCE: Unknown
485485
STATUS: Working
486486
-------------------------------------------------------------------------------
487487
EXTENSION: sysvsem
488-
PRIMARY MAINTAINER: Unkown
488+
PRIMARY MAINTAINER: Unknown
489489
MAINTENANCE: Unknown
490490
STATUS: Working
491491
-------------------------------------------------------------------------------
492492
EXTENSION: sysvshm
493-
PRIMARY MAINTAINER: Unkown
493+
PRIMARY MAINTAINER: Unknown
494494
MAINTENANCE: Unknown
495495
STATUS: Working
496496
-------------------------------------------------------------------------------

Zend/tests/try/try_catch_finally_006.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function foo($ex = NULL) {
1313
if ($ex) throw $ex;
1414
}
1515
} catch (Exception $e) {
16-
var_dump("catched");
16+
var_dump("caught");
1717
if ($ex) return "return1";
1818
} finally {
1919
var_dump("finally2");
@@ -34,6 +34,6 @@ string(8) "finally2"
3434
string(5) "label"
3535
string(7) "return2"
3636
string(8) "finally1"
37-
string(7) "catched"
37+
string(6) "caught"
3838
string(8) "finally2"
3939
string(7) "return1"

Zend/tests/try/try_catch_finally_007.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function foo($ret = FALSE) {
2020
} catch (Exception $e) {
2121
goto local;
2222
local:
23-
var_dump("catched");
23+
var_dump("caught");
2424
if ($ret) return "return";
2525
} finally {
2626
var_dump("finally2");
@@ -36,11 +36,11 @@ var_dump(foo(true));
3636
?>
3737
--EXPECT--
3838
string(8) "finally1"
39-
string(7) "catched"
39+
string(6) "caught"
4040
string(8) "finally2"
4141
string(5) "label"
4242
NULL
4343
string(8) "finally1"
44-
string(7) "catched"
44+
string(6) "caught"
4545
string(8) "finally2"
4646
string(6) "return"

ext/date/tests/DateTimeZone_clone_basic2.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Testing clone on objects whoose class derived from DateTimeZone class
2+
Testing clone on objects whose class derived from DateTimeZone class
33
--FILE--
44
<?php
55
//Set the default time zone
@@ -15,7 +15,7 @@ class DateTimeZoneExt2 extends DateTimeZoneExt1 {
1515
public $property4 = 10.5;
1616
}
1717

18-
echo "*** Testing clone on objects whoose class derived from DateTimeZone class ***\n";
18+
echo "*** Testing clone on objects whose class derived from DateTimeZone class ***\n";
1919

2020
$d1 = new DateTimeZoneExt1("Europe/London");
2121
var_dump($d1);
@@ -29,7 +29,7 @@ var_dump($d2_clone);
2929

3030
?>
3131
--EXPECTF--
32-
*** Testing clone on objects whoose class derived from DateTimeZone class ***
32+
*** Testing clone on objects whose class derived from DateTimeZone class ***
3333
object(DateTimeZoneExt1)#%d (4) {
3434
["property1"]=>
3535
int(99)

ext/date/tests/DateTime_clone_basic2.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Test clone of objects whoose class derived from DateTime class
2+
Test clone of objects whose class derived from DateTime class
33
--FILE--
44
<?php
55
//Set the default time zone
@@ -16,7 +16,7 @@ class DateTimeExt2 extends DateTimeExt1 {
1616
public $property4 = 10.5;
1717
}
1818

19-
echo "*** Testing clone on objects whoose class derived from DateTime class ***\n";
19+
echo "*** Testing clone on objects whose class derived from DateTime class ***\n";
2020

2121
$d1 = new DateTimeExt1("2009-02-03 12:34:41 GMT");
2222
var_dump($d1);
@@ -29,7 +29,7 @@ $d2_clone = clone $d2;
2929
var_dump($d2_clone);
3030
?>
3131
--EXPECTF--
32-
*** Testing clone on objects whoose class derived from DateTime class ***
32+
*** Testing clone on objects whose class derived from DateTime class ***
3333
object(DateTimeExt1)#%d (5) {
3434
["property1"]=>
3535
int(99)

ext/opcache/Optimizer/zend_ssa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static zend_bool needs_pi(const zend_op_array *op_array, zend_dfg *dfg, zend_ssa
5454
return 0;
5555
}
5656

57-
/* Make sure that both sucessors of the from block aren't the same. Pi nodes are associated
57+
/* Make sure that both successors of the from block aren't the same. Pi nodes are associated
5858
* with predecessor blocks, so we can't distinguish which edge the pi belongs to. */
5959
from_block = &ssa->cfg.blocks[from];
6060
ZEND_ASSERT(from_block->successors_count == 2);

ext/opcache/jit/libudis86/decode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ decode_operand(struct ud *u,
889889
/*
890890
* decode_operands
891891
*
892-
* Disassemble upto 3 operands of the current instruction being
892+
* Disassemble up to 3 operands of the current instruction being
893893
* disassembled. By the end of the function, the operand fields
894894
* of the ud structure will have been filled.
895895
*/

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8852,7 +8852,7 @@ static uint32_t zend_get_known_property_offset(zend_class_entry *ce, zend_string
88528852

88538853
if (ce->ce_flags & ZEND_ACC_INHERITED) {
88548854
if (!ce->parent) {
8855-
/* propery offests may be changed by inheritance */
8855+
/* property offests may be changed by inheritance */
88568856
return ZEND_WRONG_PROPERTY_OFFSET;
88578857
} else {
88588858
zend_class_entry *parent = ce->parent;

ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ MySQLPDOTest::skip();
1616
class myclass implements Serializable {
1717

1818
private static $instance = null;
19-
protected $myprotected = 'a protected propery';
19+
protected $myprotected = 'a protected property';
2020

2121
// Good old magic stuff
2222
private function __construct($caller = NULL) {
@@ -129,22 +129,22 @@ Unserializing the previously serialized object...
129129
myclass::unserialize('Data from serialize')
130130
object(myclass)#4 (1) {
131131
["myprotected":protected]=>
132-
string(19) "a protected propery"
132+
string(20) "a protected property"
133133
}
134134

135135
Using PDO::FETCH_CLASS|PDO::FETCH_SERIALIZE to fetch the object from DB and unserialize it...
136136
myclass::unserialize('C:7:"myclass":19:{Data from serialize}')
137137
object(myclass)#%d (1) {
138138
["myprotected":protected]=>
139-
string(19) "a protected propery"
139+
string(20) "a protected property"
140140
}
141141

142142
Using PDO::FETCH_CLASS to fetch the object from DB and unserialize it...
143143
myclass::__set(myobj, 'C:7:"myclass":19:{Data from serialize}')
144144
myclass::__construct(PDO shall call __construct())
145145
object(myclass)#%d (2) {
146146
["myprotected":protected]=>
147-
string(19) "a protected propery"
147+
string(20) "a protected property"
148148
["myobj"]=>
149149
string(38) "C:7:"myclass":19:{Data from serialize}"
150150
}

ext/pdo_oci/tests/bug_33707.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require 'ext/pdo/tests/pdo_test.inc';
1212
$db = PDOTest::test_factory('ext/pdo_oci/tests/common.phpt');
1313
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
1414

15-
$rs = $db->query('select blah from a_table_that_doesnt_exist');
15+
$rs = $db->query('select blah from a_table_that_does_not_exist');
1616
var_dump($rs);
1717
var_dump($db->errorInfo());
1818
--EXPECTF--

0 commit comments

Comments
 (0)