Skip to content

Commit 84b195d

Browse files
carusogabrielcmb69
authored andcommitted
Fix some misspellings
1 parent 9ea7d25 commit 84b195d

File tree

95 files changed

+143
-143
lines changed

Some content is hidden

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

95 files changed

+143
-143
lines changed

README.STREAMS

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ php_stream_ops my_ops = {
364364
"Strange MySQL example"
365365
}
366366

367-
Thats it!
367+
That's it!
368368

369369
Take a look at the STDIO implementation in streams.c for more information
370370
about how these operations work.

Zend/tests/019.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ foreach ($array_variables as $array_var) {
149149
var_dump( empty($array_var) ); // expected: bool(true)
150150
}
151151

152-
echo "\n*** Testing unset(), emtpy() & isset() with resource variables ***\n";
152+
echo "\n*** Testing unset(), empty() & isset() with resource variables ***\n";
153153
$fp = fopen(__FILE__, "r");
154154
$dfp = opendir( dirname(__FILE__) );
155155
$resources = array (
@@ -1184,7 +1184,7 @@ bool(false)
11841184
bool(false)
11851185
bool(true)
11861186

1187-
*** Testing unset(), emtpy() & isset() with resource variables ***
1187+
*** Testing unset(), empty() & isset() with resource variables ***
11881188
-- Iteration 1 --
11891189
resource(%d) of type (stream)
11901190
bool(true)

Zend/tests/assign_ref_error_var_handling.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
If the LHS of ref-assign ERRORs, that takes precendence over the "only variables" notice
2+
If the LHS of ref-assign ERRORs, that takes precedence over the "only variables" notice
33
--FILE--
44
<?php
55

Zend/tests/assign_to_obj_001.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
assgin to object leaks with ref
2+
assign to object leaks with ref
33
--FILE--
44
<?php
55
function &a($i) {

Zend/tests/bug26698.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #26698 (Thrown exceptions while evaluting argument to pass as parameter crash PHP)
2+
Bug #26698 (Thrown exceptions while evaluating argument to pass as parameter crash PHP)
33
--FILE--
44
<?php
55

Zend/tests/bug32674.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class collection implements Iterator {
3434
}
3535

3636
public function valid() {
37-
throw new Exception('shit happend');
37+
throw new Exception('shit happened');
3838

3939
return ($this->current() !== false);
4040
}

Zend/tests/bug35017.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ try {
1111
}
1212
echo "?\n";
1313
} catch(Exception $e) {
14-
echo "This Exception should be catched\n";
14+
echo "This Exception should be caught\n";
1515
}
1616
function errorHandler($errno, $errstr, $errfile, $errline, $vars) {
1717
throw new Exception('Some Exception');
1818
}
1919
?>
2020
--EXPECT--
21-
This Exception should be catched
21+
This Exception should be caught

Zend/tests/bug35437.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class TestClass
2020
try {
2121
TestClass::testMethod();
2222
} catch (Exception $e) {
23-
echo "Catched: ".$e->getMessage()."\n";
23+
echo "Caught: ".$e->getMessage()."\n";
2424
}
2525
?>
2626
--EXPECT--
27-
Catched: Error occuried: Non-static method TestClass::testMethod() should not be called statically
27+
Caught: Error occuried: Non-static method TestClass::testMethod() should not be called statically

Zend/tests/bug44660.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #44660 (Indexed and reference assignment to propery of non-object don't trigger warning)
2+
Bug #44660 (Indexed and reference assignment to property of non-object don't trigger warning)
33
--FILE--
44
<?php
55
$s = "hello";

Zend/tests/bug51791.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #51791 (constant() failed to check undefined constant and php interpreter stoped)
2+
Bug #51791 (constant() failed to check undefined constant and php interpreter stopped)
33
--FILE--
44
<?php
55

Zend/tests/bug61165.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class T {
1010
public function __toString() {
1111
global $handler;
1212
$handler = $this;
13-
$this->_this = $this; // <-- uncoment this
13+
$this->_this = $this; // <-- uncomment this
1414
return 'A';
1515
}
1616
}

Zend/tests/bug63635.phpt

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ Bug #63635 (Segfault in gc_collect_cycles)
44
<?php
55
class Node {
66
public $parent = NULL;
7-
public $childs = array();
7+
public $children = array();
88

99
function __construct(Node $parent=NULL) {
1010
if ($parent) {
11-
$parent->childs[] = $this;
11+
$parent->children[] = $this;
1212
}
13-
$this->childs[] = $this;
13+
$this->children[] = $this;
1414
}
1515

1616
function __destruct() {
17-
$this->childs = NULL;
17+
$this->children = NULL;
1818
}
1919
}
2020

Zend/tests/bug65784.phpt

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function foo1() {
88
return true;
99
} finally {
1010
try {
11-
throw new Exception("catched");
11+
throw new Exception("caught");
1212
} catch (Exception $e) {
1313
}
1414
}
@@ -25,11 +25,11 @@ try {
2525
function foo2() {
2626
try {
2727
try {
28-
throw new Exception("catched");
28+
throw new Exception("caught");
2929
return true;
3030
} finally {
3131
try {
32-
throw new Exception("catched");
32+
throw new Exception("caught");
3333
} catch (Exception $e) {
3434
}
3535
}
@@ -42,7 +42,7 @@ var_dump($foo);
4242

4343
function foo3() {
4444
try {
45-
throw new Exception("not catched");
45+
throw new Exception("not caught");
4646
return true;
4747
} finally {
4848
try {
@@ -57,7 +57,7 @@ $bar = foo3();
5757
string(9) "not catch"
5858
NULL
5959

60-
Fatal error: Uncaught Exception: not catched in %sbug65784.php:42
60+
Fatal error: Uncaught Exception: not caught in %sbug65784.php:42
6161
Stack trace:
6262
#0 %sbug65784.php(52): foo3()
6363
#1 {main}

Zend/tests/bug69892.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #69892: Different arrays compare indentical due to integer key truncation
2+
Bug #69892: Different arrays compare identical due to integer key truncation
33
--SKIPIF--
44
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only"); ?>
55
--FILE--

Zend/tests/bug70012.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ try {
1515
echo " Inner finally\n";
1616
}
1717
}
18-
echo "Outer shouldnt get here\n";
18+
echo "Outer shouldn't get here\n";
1919
} catch (Exception $e) {
2020
echo "Outer catch\n";
2121
} finally {

Zend/tests/bug75420.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #75420 (Crash when modifing property name in __isset for BP_VAR_IS)
2+
Bug #75420 (Crash when modifying property name in __isset for BP_VAR_IS)
33
--FILE--
44
<?php
55

Zend/tests/ns_010.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
010: Accesing internal namespace class
2+
010: Accessing internal namespace class
33
--FILE--
44
<?php
55
namespace X;

Zend/tests/ns_020.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
020: Accesing internal namespace function
2+
020: Accessing internal namespace function
33
--FILE--
44
<?php
55
namespace X;

Zend/tests/ns_064.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Magic methods in overrided stdClass inside namespace
2+
Magic methods in overridden stdClass inside namespace
33
--FILE--
44
<?php
55

Zend/zend_alloc.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ int zend_mm_use_huge_pages = 0;
196196
#endif
197197

198198
/*
199-
* Memory is retrived from OS by chunks of fixed size 2MB.
199+
* Memory is retrieved from OS by chunks of fixed size 2MB.
200200
* Inside chunk it's managed by pages of fixed size 4096B.
201201
* So each chunk consists from 512 pages.
202202
* The first page of each chunk is reseved for chunk header.
@@ -254,7 +254,7 @@ struct _zend_mm_heap {
254254

255255
zend_mm_chunk *main_chunk;
256256
zend_mm_chunk *cached_chunks; /* list of unused chunks */
257-
int chunks_count; /* number of alocated chunks */
257+
int chunks_count; /* number of allocated chunks */
258258
int peak_chunks_count; /* peak number of allocated chunks for current request */
259259
int cached_chunks_count; /* number of cached chunks */
260260
double avg_chunks_count; /* average number of chunks allocated per request */

Zend/zend_ast.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ ZEND_API void zend_ast_apply(zend_ast *ast, zend_ast_apply_func fn) {
821821
}
822822

823823
/*
824-
* Operator Precendence
824+
* Operator Precedence
825825
* ====================
826826
* priority associativity operators
827827
* ----------------------------------

Zend/zend_compile.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1954,7 +1954,7 @@ static void zend_find_live_range(zend_op *opline, zend_uchar type, uint32_t var)
19541954
def->opcode == ZEND_JMPNZ_EX ||
19551955
def->opcode == ZEND_BOOL ||
19561956
def->opcode == ZEND_BOOL_NOT) {
1957-
/* result IS_BOOL, it does't have to be destroyed */
1957+
/* result IS_BOOL, it doesn't have to be destroyed */
19581958
break;
19591959
} else if (def->opcode == ZEND_DECLARE_CLASS ||
19601960
def->opcode == ZEND_DECLARE_INHERITED_CLASS ||

Zend/zend_compile.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ typedef struct _zend_oparray_context {
302302
/* | | | */
303303
#define ZEND_ACC_GENERATOR (1 << 23) /* | X | | */
304304
/* | | | */
305-
/* Function with varable number of arguments | | | */
305+
/* Function with variable number of arguments | | | */
306306
#define ZEND_ACC_VARIADIC (1 << 24) /* | X | | */
307307
/* | | | */
308308
/* Immutable op_array (lazy loading) | | | */

Zend/zend_exceptions.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ static const zend_function_entry zend_funcs_throwable[] = {
761761
* such exceptions in that handler.
762762
* Also all getXY() methods are final because thy serve as read only access to
763763
* their corresponding properties, no more, no less. If after all you need to
764-
* override somthing then it is method __toString().
764+
* override something then it is method __toString().
765765
* And never try to change the state of exceptions and never implement anything
766766
* that gives the user anything to accomplish this.
767767
*/

Zend/zend_inheritance.c

+17-17
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "zend_smart_str.h"
2626
#include "zend_operators.h"
2727

28-
static void overriden_ptr_dtor(zval *zv) /* {{{ */
28+
static void overridden_ptr_dtor(zval *zv) /* {{{ */
2929
{
3030
efree_size(Z_PTR_P(zv), sizeof(zend_function));
3131
}
@@ -1172,7 +1172,7 @@ static void zend_add_magic_methods(zend_class_entry* ce, zend_string* mname, zen
11721172
}
11731173
/* }}} */
11741174

1175-
static void zend_add_trait_method(zend_class_entry *ce, const char *name, zend_string *key, zend_function *fn, HashTable **overriden) /* {{{ */
1175+
static void zend_add_trait_method(zend_class_entry *ce, const char *name, zend_string *key, zend_function *fn, HashTable **overridden) /* {{{ */
11761176
{
11771177
zend_function *existing_fn = NULL;
11781178
zend_function *new_fn;
@@ -1187,9 +1187,9 @@ static void zend_add_trait_method(zend_class_entry *ce, const char *name, zend_s
11871187

11881188
if (existing_fn->common.scope == ce) {
11891189
/* members from the current class override trait methods */
1190-
/* use temporary *overriden HashTable to detect hidden conflict */
1191-
if (*overriden) {
1192-
if ((existing_fn = zend_hash_find_ptr(*overriden, key)) != NULL) {
1190+
/* use temporary *overridden HashTable to detect hidden conflict */
1191+
if (*overridden) {
1192+
if ((existing_fn = zend_hash_find_ptr(*overridden, key)) != NULL) {
11931193
if (existing_fn->common.fn_flags & ZEND_ACC_ABSTRACT) {
11941194
/* Make sure the trait method is compatible with previosly declared abstract method */
11951195
if (UNEXPECTED(!zend_traits_method_compatibility_check(fn, existing_fn))) {
@@ -1209,10 +1209,10 @@ static void zend_add_trait_method(zend_class_entry *ce, const char *name, zend_s
12091209
}
12101210
}
12111211
} else {
1212-
ALLOC_HASHTABLE(*overriden);
1213-
zend_hash_init_ex(*overriden, 8, NULL, overriden_ptr_dtor, 0, 0);
1212+
ALLOC_HASHTABLE(*overridden);
1213+
zend_hash_init_ex(*overridden, 8, NULL, overridden_ptr_dtor, 0, 0);
12141214
}
1215-
zend_hash_update_mem(*overriden, key, fn, sizeof(zend_function));
1215+
zend_hash_update_mem(*overridden, key, fn, sizeof(zend_function));
12161216
return;
12171217
} else if (existing_fn->common.fn_flags & ZEND_ACC_ABSTRACT &&
12181218
(existing_fn->common.scope->ce_flags & ZEND_ACC_INTERFACE) == 0) {
@@ -1274,7 +1274,7 @@ static void zend_fixup_trait_method(zend_function *fn, zend_class_entry *ce) /*
12741274
}
12751275
/* }}} */
12761276

1277-
static int zend_traits_copy_functions(zend_string *fnname, zend_function *fn, zend_class_entry *ce, HashTable **overriden, HashTable *exclude_table, zend_class_entry **aliases) /* {{{ */
1277+
static int zend_traits_copy_functions(zend_string *fnname, zend_function *fn, zend_class_entry *ce, HashTable **overridden, HashTable *exclude_table, zend_class_entry **aliases) /* {{{ */
12781278
{
12791279
zend_trait_alias *alias, **alias_ptr;
12801280
zend_string *lcname;
@@ -1300,7 +1300,7 @@ static int zend_traits_copy_functions(zend_string *fnname, zend_function *fn, ze
13001300
}
13011301

13021302
lcname = zend_string_tolower(alias->alias);
1303-
zend_add_trait_method(ce, ZSTR_VAL(alias->alias), lcname, &fn_copy, overriden);
1303+
zend_add_trait_method(ce, ZSTR_VAL(alias->alias), lcname, &fn_copy, overridden);
13041304
zend_string_release_ex(lcname, 0);
13051305

13061306
/* Record the trait from which this alias was resolved. */
@@ -1352,7 +1352,7 @@ static int zend_traits_copy_functions(zend_string *fnname, zend_function *fn, ze
13521352
}
13531353
}
13541354

1355-
zend_add_trait_method(ce, ZSTR_VAL(fn->common.function_name), fnname, &fn_copy, overriden);
1355+
zend_add_trait_method(ce, ZSTR_VAL(fn->common.function_name), fnname, &fn_copy, overridden);
13561356
}
13571357

13581358
return ZEND_HASH_APPLY_KEEP;
@@ -1496,15 +1496,15 @@ static void zend_traits_init_trait_structures(zend_class_entry *ce, HashTable **
14961496
static void zend_do_traits_method_binding(zend_class_entry *ce, HashTable **exclude_tables, zend_class_entry **aliases) /* {{{ */
14971497
{
14981498
uint32_t i;
1499-
HashTable *overriden = NULL;
1499+
HashTable *overridden = NULL;
15001500
zend_string *key;
15011501
zend_function *fn;
15021502

15031503
if (exclude_tables) {
15041504
for (i = 0; i < ce->num_traits; i++) {
15051505
/* copies functions, applies defined aliasing, and excludes unused trait methods */
15061506
ZEND_HASH_FOREACH_STR_KEY_PTR(&ce->traits[i]->function_table, key, fn) {
1507-
zend_traits_copy_functions(key, fn, ce, &overriden, exclude_tables[i], aliases);
1507+
zend_traits_copy_functions(key, fn, ce, &overridden, exclude_tables[i], aliases);
15081508
} ZEND_HASH_FOREACH_END();
15091509

15101510
if (exclude_tables[i]) {
@@ -1516,7 +1516,7 @@ static void zend_do_traits_method_binding(zend_class_entry *ce, HashTable **excl
15161516
} else {
15171517
for (i = 0; i < ce->num_traits; i++) {
15181518
ZEND_HASH_FOREACH_STR_KEY_PTR(&ce->traits[i]->function_table, key, fn) {
1519-
zend_traits_copy_functions(key, fn, ce, &overriden, NULL, aliases);
1519+
zend_traits_copy_functions(key, fn, ce, &overridden, NULL, aliases);
15201520
} ZEND_HASH_FOREACH_END();
15211521
}
15221522
}
@@ -1525,9 +1525,9 @@ static void zend_do_traits_method_binding(zend_class_entry *ce, HashTable **excl
15251525
zend_fixup_trait_method(fn, ce);
15261526
} ZEND_HASH_FOREACH_END();
15271527

1528-
if (overriden) {
1529-
zend_hash_destroy(overriden);
1530-
FREE_HASHTABLE(overriden);
1528+
if (overridden) {
1529+
zend_hash_destroy(overridden);
1530+
FREE_HASHTABLE(overridden);
15311531
}
15321532
}
15331533
/* }}} */

Zend/zend_interfaces.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ static int zend_implement_aggregate(zend_class_entry *interface, zend_class_entr
315315
/* inheritance ensures the class has necessary userland methods */
316316
return SUCCESS;
317317
} else if (class_type->get_iterator != zend_user_it_get_new_iterator) {
318-
/* c-level get_iterator cannot be changed (exception being only Traversable is implmented) */
318+
/* c-level get_iterator cannot be changed (exception being only Traversable is implemented) */
319319
if (class_type->num_interfaces) {
320320
for (i = 0; i < class_type->num_interfaces; i++) {
321321
if (class_type->interfaces[i] == zend_ce_iterator) {

Zend/zend_object_handlers.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ ZEND_API zval *zend_std_get_static_property(zend_class_entry *ce, zend_string *p
14241424
}
14251425
}
14261426

1427-
/* check if static properties were destoyed */
1427+
/* check if static properties were destroyed */
14281428
if (UNEXPECTED(CE_STATIC_MEMBERS(ce) == NULL)) {
14291429
if (ce->type == ZEND_INTERNAL_CLASS) {
14301430
zend_intenal_class_init_statics(ce);

0 commit comments

Comments
 (0)