Skip to content

Commit ea29765

Browse files
Zend/*: fix a bunch of typos (GH-16017)
* Zend/*: fix a bunch of typos * Zend/tests/try/try_catch_finally_005.phpt: update string length
1 parent 15dde9d commit ea29765

File tree

67 files changed

+92
-92
lines changed

Some content is hidden

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

67 files changed

+92
-92
lines changed

Zend/tests/019.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ foreach ($scalar_variables as $scalar_var) {
5050

5151
// destroy the variable using unset
5252
unset( $scalar_var );
53-
// dump and see if its destroyed, expcted: NULL
53+
// dump and see if its destroyed, expected: NULL
5454
var_dump( $scalar_var );
5555

5656
// check using isset to see if unset, expected: bool(false)
@@ -165,11 +165,11 @@ foreach ($resources as $resource) {
165165
// unset the resource
166166
unset($resource);
167167
// check using isset() and empty()
168-
var_dump( isset($resource) ); // expected: bool(flase)
168+
var_dump( isset($resource) ); // expected: bool(false)
169169
var_dump( empty($resource) ); // expected: bool(true)
170170
// call isset() with two args, but one set
171171
var_dump( isset($resource, $temp_var) ); // expected: bool(false)
172-
// uset the temp_var
172+
// unset the temp_var
173173
unset($temp_var);
174174
// now the isset() with both the args as unset
175175
var_dump( isset($resource, $temp_var) ); // expected: bool(false);
@@ -211,7 +211,7 @@ var_dump($point1); // dump the object
211211
// check the object and member that is not set
212212
var_dump( isset($point1) ); // expected: bool(true)
213213
var_dump( empty($point1) ); // expected: bool(false)
214-
var_dump( isset($point1->$lable) ); //expected: bool(flase)
214+
var_dump( isset($point1->$lable) ); //expected: bool(false)
215215
var_dump( empty($point1->$lable) ); //expected: bool(true)
216216

217217
//set the member variable lable and check
@@ -291,7 +291,7 @@ function test_unset1() {
291291
$static_var = 20;
292292
echo "value of static_var after new assignment: $static_var\n";
293293
}
294-
// call the functiont
294+
// call the function
295295
test_unset1();
296296
test_unset1();
297297
test_unset1();

Zend/tests/bug27731.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #27731 (error_reporing() call inside @ block does not work correctly)
2+
Bug #27731 (error_reporting() call inside @ block does not work correctly)
33
--FILE--
44
<?php
55
error_reporting(E_ALL ^ E_NOTICE);

Zend/tests/bug30162.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #30162 (Catching exception in constructor couses lose of $this)
2+
Bug #30162 (Catching exception in constructor causes lose of $this)
33
--FILE--
44
<?php
55
#[AllowDynamicProperties]

Zend/tests/bug30922.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
Bug #30922 (reflective functions crash PHP when interfaces extend themselves)
33
--FILE--
44
<?php
5-
interface RecurisiveFooFar extends RecurisiveFooFar {}
6-
class A implements RecurisiveFooFar {}
5+
interface RecursiveFooFar extends RecursiveFooFar {}
6+
class A implements RecursiveFooFar {}
77

88
$a = new A();
99
var_dump($a instanceOf A);
1010
echo "ok\n";
1111
?>
1212
--EXPECTF--
13-
Fatal error: Uncaught Error: Interface "RecurisiveFooFar" not found in %s:%d
13+
Fatal error: Uncaught Error: Interface "RecursiveFooFar" not found in %s:%d
1414
Stack trace:
1515
#0 {main}
1616
thrown in %s on line %d

Zend/tests/bug32322.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class test
4444
{
4545
echo "Class " . $this -> myname . " destroyed at script end\n";
4646
} else {
47-
echo "Class " . $this -> myname . " destroyed beforce script end\n";
47+
echo "Class " . $this -> myname . " destroyed before script end\n";
4848
}
4949
}
5050
}

Zend/tests/bug34467.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #34467 (foreach + __get + __set incosistency)
2+
Bug #34467 (foreach + __get + __set inconsistency)
33
--FILE--
44
<?php
55
class abc {

Zend/tests/bug36513.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #36513 (comment will be outputed in last line)
2+
Bug #36513 (comment will be output in last line)
33
--FILE--
44
<?php
55
function test($s) {

Zend/tests/bug37707.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ Bug #37707 (clone without assigning leaks memory)
44
<?php
55
class testme {
66
function __clone() {
7-
echo "clonned\n";
7+
echo "cloned\n";
88
}
99
}
1010
clone new testme();
1111
echo "NO LEAK\n";
1212
?>
1313
--EXPECT--
14-
clonned
14+
cloned
1515
NO LEAK

Zend/tests/bug39003.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ClassName
1111
function test (OtherClassName $object) { }
1212

1313
spl_autoload_register(function ($class) {
14-
var_dump("__autload($class)");
14+
var_dump("__autoload($class)");
1515
});
1616

1717
$obj = new ClassName;

Zend/tests/bug39297.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #39297 (Memory corryption because of indirect modification of overloaded array)
2+
Bug #39297 (Memory corruption because of indirect modification of overloaded array)
33
--FILE--
44
<?php
55
function compareByRef(&$first, &$second) {
@@ -18,15 +18,15 @@ class MyTree implements ArrayAccess {
1818

1919
public function offsetSet($offset, $value): void {
2020
echo "offsetSet()\n";
21-
$cannonicalName = strtolower($offset);
22-
$this->children[$cannonicalName] = $value;
21+
$canonicalName = strtolower($offset);
22+
$this->children[$canonicalName] = $value;
2323
$value->parent = $this;
2424
}
2525

2626
public function offsetGet($offset): mixed {
2727
echo "offsetGet()\n";
28-
$cannonicalName = strtolower($offset);
29-
return $this->children[$cannonicalName];
28+
$canonicalName = strtolower($offset);
29+
return $this->children[$canonicalName];
3030
}
3131

3232
}

Zend/tests/bug43851.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #43851 (Memory corrution on reuse of assigned value)
2+
Bug #43851 (Memory corruption on reuse of assigned value)
33
--FILE--
44
<?php
55
foo();

Zend/tests/bug45742.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #45742 Wrong class array inpretetion using constant indexes
2+
Bug #45742 Wrong class array interpretation using constant indexes
33
--FILE--
44
<?php
55
class Constants {

Zend/tests/bug54039.phpt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ $f = test_2(); $f();
3131
function test_3() {
3232
static $v = "";
3333
$v .= 'b';
34-
echo "Outer function catenates 'b' onto \$v to give $v\n";
34+
echo "Outer function concatenates 'b' onto \$v to give $v\n";
3535
$f = function() use($v) {
3636
echo "Inner function reckons \$v is $v\n";
3737
};
3838
$v .= 'a';
39-
echo "Outer function catenates 'a' onto \$v to give $v\n";
39+
echo "Outer function concatenates 'a' onto \$v to give $v\n";
4040
return $f;
4141
}
4242
$f = test_3(); $f();
@@ -51,9 +51,9 @@ Outer function increments $v to 1
5151
Inner function reckons $v is 0
5252
Outer function increments $v to 2
5353
Inner function reckons $v is 1
54-
Outer function catenates 'b' onto $v to give b
55-
Outer function catenates 'a' onto $v to give ba
54+
Outer function concatenates 'b' onto $v to give b
55+
Outer function concatenates 'a' onto $v to give ba
5656
Inner function reckons $v is b
57-
Outer function catenates 'b' onto $v to give bab
58-
Outer function catenates 'a' onto $v to give baba
57+
Outer function concatenates 'b' onto $v to give bab
58+
Outer function concatenates 'a' onto $v to give baba
5959
Inner function reckons $v is bab

Zend/tests/bug54043.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #54043: Remove inconsitency of internal exceptions and user defined exceptions
2+
Bug #54043: Remove inconsistency of internal exceptions and user defined exceptions
33
--FILE--
44
<?php
55

Zend/tests/bug54367.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Bug #54367 (Use of closure causes problem in ArrayAccess)
33
--FILE--
44
<?php
5-
class MyObjet implements ArrayAccess
5+
class MyObject implements ArrayAccess
66
{
77
public function offsetSet($offset, $value): void { }
88
public function offsetExists($offset): bool { }
@@ -16,7 +16,7 @@ class MyObjet implements ArrayAccess
1616
}
1717
}
1818

19-
$a = new MyObjet();
19+
$a = new MyObject();
2020
echo $a['p']('foo');
2121
?>
2222
--EXPECT--

Zend/tests/bug60536_005.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ trait THello1 {
1212
}
1313

1414
// Protected and public are handle more strict with a warning then what is
15-
// expected from normal inheritance since they can have easier coliding semantics
15+
// expected from normal inheritance since they can have easier colliding semantics
1616
echo "PRE-CLASS-GUARD\n";
1717
class SameNameInSubClassProducesNotice extends Base {
1818
use THello1;

Zend/tests/bug63219.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #63219 (Segfault when aliasing trait method when autoloader throws excpetion)
2+
Bug #63219 (Segfault when aliasing trait method when autoloader throws exception)
33
--FILE--
44
<?php
55
trait TFoo {

Zend/tests/bug70805.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class C {
1414
public function __destruct() {
1515
if (isset($GLOBALS["a"])) {
1616
unset($GLOBALS["array"]);
17-
unset($GLOBALS["a"]); // this will be called in gc_colloct_roots and put $a into gc roots buf
17+
unset($GLOBALS["a"]); // this will be called in gc_collect_roots and put $a into gc roots buf
1818
}
1919
}
2020
}
@@ -36,11 +36,11 @@ while ($i++ < 9998) {
3636
}
3737
$t = [new C];
3838
$t[] = &$t;
39-
unset($t); // This is used to trigger C::__destruct while doing gc_colloct_roots
39+
unset($t); // This is used to trigger C::__destruct while doing gc_collect_roots
4040

4141
$e = $a;
42-
unset($a); // This one cannot be put into roots buf because it's full, thus gc_colloct_roots will be called,
43-
// but C::__destructor which is called in gc_colloct_roots will put $a into buf
42+
unset($a); // This one cannot be put into roots buf because it's full, thus gc_collect_roots will be called,
43+
// but C::__destructor which is called in gc_collect_roots will put $a into buf
4444
// which will make $a be put into gc roots buf twice
4545
var_dump(gc_collect_cycles());
4646
?>

Zend/tests/bug73987_2.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #73987 (Method compatibility check looks to original definition and not parent - nullabilty abstract)
2+
Bug #73987 (Method compatibility check looks to original definition and not parent - nullability abstract)
33
--FILE--
44
<?php
55

Zend/tests/bug80811.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #80811: Function exec without $output but with $restult_code parameter crashes
2+
Bug #80811: Function exec without $output but with $result_code parameter crashes
33
--FILE--
44
<?php
55

Zend/tests/class_constants_006.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Ownership of constant expression inhereted from interface should be transfered to class
2+
Ownership of constant expression inherited from interface should be tranferred to class
33
--FILE--
44
<?php
55
interface I {

Zend/tests/class_constants_007.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Ownership of constant expression inhereted from immutable class should be transfered to class
2+
Ownership of constant expression inherited from immutable class should be tranferred to class
33
--FILE--
44
<?php
55
class A {

Zend/tests/closure_042.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ $c = function() { var_dump($this); };
77
$d = $c->bindTo(new stdClass);
88
$d();
99
$rm = new ReflectionFunction($d);
10-
var_dump($rm->getClosureScopeClass()->name); //dummy sope is Closure
10+
var_dump($rm->getClosureScopeClass()->name); //dummy scope is Closure
1111

1212
//should have the same effect
1313
$d = $c->bindTo(new stdClass, NULL);
1414
$d();
1515
$rm = new ReflectionFunction($d);
16-
var_dump($rm->getClosureScopeClass()->name); //dummy sope is Closure
16+
var_dump($rm->getClosureScopeClass()->name); //dummy scope is Closure
1717

1818
echo "Done.\n";
1919
?>

Zend/tests/closures/closure_from_callable_error.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ catch (\Throwable $t) {
140140
echo "Wrong exception type thrown: ".get_class($t)." : ".$t->getMessage()."\n";
141141
}
142142

143-
echo 'Subclass cannot closure over parant private static method'."\n";
143+
echo 'Subclass cannot closure over parent private static method'."\n";
144144
try {
145145
$subFoo = new SubFoo;
146146
$fn = $subFoo->closePrivateStaticInvalid();
@@ -205,7 +205,7 @@ Non-existent method should fail
205205
Non-existent class should fail
206206
Non-existent function should fail
207207
Subclass cannot closure over parent private instance method
208-
Subclass cannot closure over parant private static method
208+
Subclass cannot closure over parent private static method
209209
Function scope cannot closure over protected instance method
210210
Function scope cannot closure over private instance method
211211
Access private instance method of parent object through "self::" to parent method

Zend/tests/ctor_promotion_mixing.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Constructor promotiong mixed with other properties, parameters and code
2+
Constructor promotion mixed with other properties, parameters and code
33
--FILE--
44
<?php
55

Zend/tests/enum/empty-from.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Empty enum with from/tryFrom doens't segfault
2+
Empty enum with from/tryFrom doesn't segfault
33
--FILE--
44
<?php
55

Zend/tests/fe_fetch_dtor_exception.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Dtor may throw exception furing FE_FETCH assignment
2+
Dtor may throw exception during FE_FETCH assignment
33
--FILE--
44
<?php
55

Zend/tests/float_to_int/no_warnings_compatible_float_literals_assignment_ops.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Implicit float to int conversions should not warn for literals in combined assingment operetor if float has a fractional part equal to 0
2+
Implicit float to int conversions should not warn for literals in combined assignment operator if float has a fractional part equal to 0
33
--FILE--
44
<?php
55

Zend/tests/float_to_int/warnings_float_literals_assignment_ops.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Implicit float to int conversions should warn for literals in combined assingment operetor
2+
Implicit float to int conversions should warn for literals in combined assignment operator
33
--FILE--
44
<?php
55

Zend/tests/float_to_int/warnings_string_float_literals_assignment_ops.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Implicit float to int conversions should warn for literals in combined assingment operetor
2+
Implicit float to int conversions should warn for literals in combined assignment operator
33
--FILE--
44
<?php
55

Zend/tests/foreach_011.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
sort() functions precerve foreach by reference iterator pointer
2+
sort() functions preserve foreach by reference iterator pointer
33
--FILE--
44
<?php
55
$a = [1,2,3,4,5,0];

Zend/tests/foreach_012.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
array_walk() function precerve foreach by reference iterator pointer
2+
array_walk() function preserve foreach by reference iterator pointer
33
--FILE--
44
<?php
55
$a = [1,2,3,4,5];

Zend/tests/foreach_013.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
array_push() function precerve foreach by reference iterator pointer
2+
array_push() function preserve foreach by reference iterator pointer
33
--FILE--
44
<?php
55
$a = [1,2,3];

Zend/tests/foreach_014.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
array_pop() function precerve foreach by reference iterator pointer
2+
array_pop() function preserve foreach by reference iterator pointer
33
--FILE--
44
<?php
55
$a = [1,2,3];

Zend/tests/foreach_015.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
array_shift() function precerve foreach by reference iterator pointer
2+
array_shift() function preserve foreach by reference iterator pointer
33
--FILE--
44
<?php
55
$a = [1,2,3,4];

0 commit comments

Comments
 (0)