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
}

0 commit comments

Comments
 (0)