com php-langspec: Fix typos in the unit tests (comments/messages): tests/arrays/arrays.phpt tests/basic_concepts/memory_model _and_handle_types.phpt
tests/classes/cloning.phpt tests/expressions/list/list_self_assign.phpt tests/e xpressions/postfix_operators/subscripting.phpt tests/expr
essions/relational_operators/comparisons1.phpt tests/ex pressions/relational_operators/comparisons3.phpt tests/
expressions/relational_operators/comparisons4.phpt test s
| From: | Nikita Popov | Date: | Mon, 10 Sep 2018 11:40:26 +0000 |
| Subject: | com php-langspec: Fix typos in the unit tests (comments/messages): tests/arrays/arrays.phpt tests/basic_concepts/memory_model _and_handle_types.phpt tests/classes/cloning.phpt tests/expressions/list/list_self_assign.phpt tests/e xpressions/postfix_operators/subscripting.phpt tests/expr essions/relational_operators/comparisons1.phpt tests/ex pressions/relational_operators/comparisons3.phpt tests/ expressions/relational_operators/comparisons4.phpt test s |
||
| Groups: | php.standards.cvs | ||
| Request: | Send a blank email to standards--cvs+get-414@lists.php.net to get a copy of this message | ||
Commit: 8f78136eaae6a3fa7eef4789c8729bc38726b19d
Author: Tyson Andre <tysonandre775@hotmail.com> Sun, 9 Sep 2018 16:32:01 -0400
Committer: Nikita Popov <nikita.ppv@gmail.com> Mon, 10 Sep 2018 13:40:26 +0200
Parents: 8953d961e3fde95fe2bd6f7201be62ed288dd23a
Branches: master
Link: http://git.php.net/?p=php-langspec.git;a=commitdiff;h=8f78136eaae6a3fa7eef4789c8729bc38726b19d
Log:
Fix typos in the unit tests (comments/messages)
Detected by https://github.com/client9/misspell
Changed paths:
M tests/arrays/arrays.phpt
M tests/basic_concepts/memory_model_and_handle_types.phpt
M tests/classes/cloning.phpt
M tests/expressions/list/list_self_assign.phpt
M tests/expressions/postfix_operators/subscripting.phpt
M tests/expressions/relational_operators/comparisons1.phpt
M tests/expressions/relational_operators/comparisons3.phpt
M tests/expressions/relational_operators/comparisons4.phpt
M tests/expressions/source_file_inclusion/include.phpt
M tests/expressions/source_file_inclusion/include_once.phpt
M tests/expressions/source_file_inclusion/require.phpt
M tests/expressions/source_file_inclusion/require_once.phpt
M tests/expressions/unary_operators/cast.phpt
M tests/expressions/yield_operator/yield.phpt
M tests/functions/basics.phpt
M tests/functions/using_byrefs_to_undefined_variables.phpt
diff --git a/tests/arrays/arrays.phpt b/tests/arrays/arrays.phpt index c01c583..bbc3a29 100644 --- a/tests/arrays/arrays.phpt +++ b/tests/arrays/arrays.phpt @@ -108,8 +108,8 @@ foreach($v as $e) // only has 3 elements ([3], [6], and [7]), not 8 ([0]-[7]) } echo "\n"; -echo "\$v[1] is >".$v[1]."<\n"; var_dump($v1[1]); // access non-existant element -echo "\$v[4] is >".$v[4]."<\n"; var_dump($v1[4]); // access non-existant element +echo "\$v[1] is >".$v[1]."<\n"; var_dump($v1[1]); // access non-existent element +echo "\$v[4] is >".$v[4]."<\n"; var_dump($v1[4]); // access non-existent element $v[1] = TRUE; // increases array to 4 elements $v[4] = 99; // increases array to 5 elements diff --git a/tests/basic_concepts/memory_model_and_handle_types.phpt b/tests/basic_concepts/memory_model_and_handle_types.phpt index 6394d57..d819391 100644 --- a/tests/basic_concepts/memory_model_and_handle_types.phpt +++ b/tests/basic_concepts/memory_model_and_handle_types.phpt @@ -166,7 +166,7 @@ function g1(&$b) // make $b alias whatever $a aliases $b = new Point(5, 7); // removes second alias from first point; // then create first alias to second new point // changing $b also changes $a as well, so $a's alias - // is also removed, alowing the destructor run + // is also removed, allowing the destructor run echo "After 'new Point(5, 7)', \$b is $b\n"; } // $b goes away, remove its alias from new point diff --git a/tests/classes/cloning.phpt b/tests/classes/cloning.phpt index 501dd5d..ce2256c 100644 --- a/tests/classes/cloning.phpt +++ b/tests/classes/cloning.phpt @@ -58,7 +58,7 @@ echo "Point count = " . Point2::getPointCount() . "\n"; var_dump($p4 = clone $p1); echo "Point count = " . Point2::getPointCount() . "\n"; -echo "================= use chained cloning in a class heirarchy =================\n"; +echo "================= use chained cloning in a class hierarchy =================\n"; class Employee { @@ -154,7 +154,7 @@ object(Point2)#6 (2) { int(0) } Point count = 4 -================= use chained cloning in a class heirarchy ================= +================= use chained cloning in a class hierarchy ================= object(Manager)#7 (2) { ["level":"Manager":private]=> int(23) diff --git a/tests/expressions/list/list_self_assign.phpt b/tests/expressions/list/list_self_assign.phpt index 4640912..33993c5 100644 --- a/tests/expressions/list/list_self_assign.phpt +++ b/tests/expressions/list/list_self_assign.phpt @@ -1,5 +1,5 @@ --TEST-- -Test variable occuring on both LHS and RHS of list() +Test variable occurring on both LHS and RHS of list() --FILE-- <?php diff --git a/tests/expressions/postfix_operators/subscripting.phpt b/tests/expressions/postfix_operators/subscripting.phpt index a6373ff..8e3fea0 100644 --- a/tests/expressions/postfix_operators/subscripting.phpt +++ b/tests/expressions/postfix_operators/subscripting.phpt @@ -26,7 +26,7 @@ foreach ($v as $k => $e) echo "key: ".$k.", value: ".$e."\n"; } -// try to access non-existant elements +// try to access non-existent elements echo "[7] contains >".($v[7] == NULL ? "NULL" : "??") ."<, [12] contains >".($v[12] == NULL ? "NULL" : "??")."<\n"; diff --git a/tests/expressions/relational_operators/comparisons1.phpt b/tests/expressions/relational_operators/comparisons1.phpt index 8059613..ab2a494 100644 --- a/tests/expressions/relational_operators/comparisons1.phpt +++ b/tests/expressions/relational_operators/comparisons1.phpt @@ -27,7 +27,7 @@ echo "\n"; ///* // NULL operand with all kinds of operands, swapping them over to make -// LHS/RHS order is irrelevent. +// LHS/RHS order is irrelevant. $oper1 = array(NULL); $oper2 = array(0, 100, -3.4, TRUE, FALSE, NULL, "", "123", "abc", [], [10,2.3]); diff --git a/tests/expressions/relational_operators/comparisons3.phpt b/tests/expressions/relational_operators/comparisons3.phpt index e2be80a..8fa0540 100644 --- a/tests/expressions/relational_operators/comparisons3.phpt +++ b/tests/expressions/relational_operators/comparisons3.phpt @@ -13,7 +13,7 @@ error_reporting(-1); ///* // Boolean operand with all kinds of operands, swapping them over to make -// LHS/RHS order is irrelevent. +// LHS/RHS order is irrelevant. $oper1 = array(TRUE, FALSE); $oper2 = array(0, 100, -3.4, TRUE, FALSE, NULL, "", "123", "abc", [], [10,2.3]); diff --git a/tests/expressions/relational_operators/comparisons4.phpt b/tests/expressions/relational_operators/comparisons4.phpt index 6f07769..d22935a 100644 --- a/tests/expressions/relational_operators/comparisons4.phpt +++ b/tests/expressions/relational_operators/comparisons4.phpt @@ -13,7 +13,7 @@ error_reporting(-1); ///* // Numeric strings with all kinds of operands, swapping them over to make -// LHS/RHS order is irrelevent. +// LHS/RHS order is irrelevant. $oper1 = array("10", "-5.1"); $oper2 = array(0, 100, -3.4, TRUE, FALSE, NULL, "", "123", "abc", [], [10,2.3]); diff --git a/tests/expressions/source_file_inclusion/include.phpt b/tests/expressions/source_file_inclusion/include.phpt index 55b8f4a..89fc0c0 100644 --- a/tests/expressions/source_file_inclusion/include.phpt +++ b/tests/expressions/source_file_inclusion/include.phpt @@ -17,7 +17,7 @@ echo "Inside file >" . __FILE__ . "< at line >" . __LINE__ . //var_dump(MY_MIN); //var_dump(MY_MAX); -// Try to include a non-existant file +// Try to include a non-existent file $fileName = 'unknown.inc'; $inc = include $fileName; diff --git a/tests/expressions/source_file_inclusion/include_once.phpt b/tests/expressions/source_file_inclusion/include_once.phpt index 305f573..2dd96de 100644 --- a/tests/expressions/source_file_inclusion/include_once.phpt +++ b/tests/expressions/source_file_inclusion/include_once.phpt @@ -11,7 +11,7 @@ PHP Spec test generated from ./expressions/source_file_inclusion/include_once.ph error_reporting(-1); -// Try to include a non-existant file +// Try to include a non-existent file $inc = include_once 'XXPositions.inc'; var_dump($inc); diff --git a/tests/expressions/source_file_inclusion/require.phpt b/tests/expressions/source_file_inclusion/require.phpt index e8db28b..a357d3d 100644 --- a/tests/expressions/source_file_inclusion/require.phpt +++ b/tests/expressions/source_file_inclusion/require.phpt @@ -17,7 +17,7 @@ echo "Inside file >" . __FILE__ . "< at line >" . __LINE__ . //var_dump(MY_MIN); //var_dump(MY_MAX); -// Try to require a non-existant file +// Try to require a non-existent file $fileName = 'unknown.inc'; //$inc = require $fileName; diff --git a/tests/expressions/source_file_inclusion/require_once.phpt b/tests/expressions/source_file_inclusion/require_once.phpt index 7e8410c..e3a6aaa 100644 --- a/tests/expressions/source_file_inclusion/require_once.phpt +++ b/tests/expressions/source_file_inclusion/require_once.phpt @@ -11,7 +11,7 @@ PHP Spec test generated from ./expressions/source_file_inclusion/require_once.ph error_reporting(-1); -// Try to require a non-existant file +// Try to require a non-existent file //$inc = require_once('XXPositions.inc'); //var_dump($inc); diff --git a/tests/expressions/unary_operators/cast.phpt b/tests/expressions/unary_operators/cast.phpt index 399ea3a..6e48753 100644 --- a/tests/expressions/unary_operators/cast.phpt +++ b/tests/expressions/unary_operators/cast.phpt @@ -90,9 +90,9 @@ echo "---------------\n"; class E { - const CON1 = 123; // constants irrelevent for conversion purposes - public function f() {} // methods irrelevent for conversion purposes - private static $fsprop = 0; // static properties irrelevent for conversion purposes + const CON1 = 123; // constants irrelevant for conversion purposes + public function f() {} // methods irrelevant for conversion purposes + private static $fsprop = 0; // static properties irrelevant for conversion purposes private $priv_prop; protected $prot_prop = 12.345; diff --git a/tests/expressions/yield_operator/yield.phpt b/tests/expressions/yield_operator/yield.phpt index 55c383d..0e472da 100644 --- a/tests/expressions/yield_operator/yield.phpt +++ b/tests/expressions/yield_operator/yield.phpt @@ -54,7 +54,7 @@ echo "===========================\n"; //*/ ///* -// define a generator that returns sucessive lines from a file of text +// define a generator that returns successive lines from a file of text function getTextFileLines($filename) { diff --git a/tests/functions/basics.phpt b/tests/functions/basics.phpt index c6d7ad6..5cebce8 100644 --- a/tests/functions/basics.phpt +++ b/tests/functions/basics.phpt @@ -53,7 +53,7 @@ function f2($p1, $p2) ", \$p2 = ".($p2 == NULL ? "NULL" : $p2)."\n"; } -// if fewer arguments are passed than there are paramaters declared, an ArgumentCountError is thrown +// if fewer arguments are passed than there are parameters declared, an ArgumentCountError is thrown try { f2(); diff --git a/tests/functions/using_byrefs_to_undefined_variables.phpt b/tests/functions/using_byrefs_to_undefined_variables.phpt index 756f630..65abfc3 100644 --- a/tests/functions/using_byrefs_to_undefined_variables.phpt +++ b/tests/functions/using_byrefs_to_undefined_variables.phpt @@ -35,7 +35,7 @@ function g(&$q) // to function f(), 0 passed var_dump($x); -f($x); // non-existant variable going in +f($x); // non-existent variable going in var_dump($x); $a = array(10, 20, 30); @@ -44,10 +44,10 @@ var_dump($a); f($a[0]); var_dump($a); -f($a[5]); // non-existant element going in +f($a[5]); // non-existent element going in var_dump($a); -f($a["red"]); // non-existant element going in +f($a["red"]); // non-existent element going in var_dump($a); //*/ ///* @@ -68,7 +68,7 @@ function h(&$p) // to function f(), 0 passed var_dump($x); -h($x); // non-existant variable going in +h($x); // non-existent variable going in var_dump($x); $a = array(10, 20, 30); @@ -77,10 +77,10 @@ var_dump($a); h($a[0]); var_dump($a); -h($a[5]); // non-existant element going in +h($a[5]); // non-existent element going in var_dump($a); -h($a["red"]); // non-existant element going in +h($a["red"]); // non-existent element going in var_dump($a); //*/ ///* @@ -102,11 +102,11 @@ $d = &k($a[0]); var_dump($d); var_dump($a); -$d = &k($a[5]); // non-existant element going in +$d = &k($a[5]); // non-existent element going in var_dump($d); var_dump($a); -$d = &k($a["red"]); // non-existant element going in +$d = &k($a["red"]); // non-existent element going in var_dump($d); var_dump($a); //*/
diff --git a/tests/arrays/arrays.phpt b/tests/arrays/arrays.phpt index c01c583..bbc3a29 100644 --- a/tests/arrays/arrays.phpt +++ b/tests/arrays/arrays.phpt @@ -108,8 +108,8 @@ foreach($v as $e) // only has 3 elements ([3], [6], and [7]), not 8 ([0]-[7]) } echo "\n"; -echo "\$v[1] is >".$v[1]."<\n"; var_dump($v1[1]); // access non-existant element -echo "\$v[4] is >".$v[4]."<\n"; var_dump($v1[4]); // access non-existant element +echo "\$v[1] is >".$v[1]."<\n"; var_dump($v1[1]); // access non-existent element +echo "\$v[4] is >".$v[4]."<\n"; var_dump($v1[4]); // access non-existent element $v[1] = TRUE; // increases array to 4 elements $v[4] = 99; // increases array to 5 elements diff --git a/tests/basic_concepts/memory_model_and_handle_types.phpt b/tests/basic_concepts/memory_model_and_handle_types.phpt index 6394d57..d819391 100644 --- a/tests/basic_concepts/memory_model_and_handle_types.phpt +++ b/tests/basic_concepts/memory_model_and_handle_types.phpt @@ -166,7 +166,7 @@ function g1(&$b) // make $b alias whatever $a aliases $b = new Point(5, 7); // removes second alias from first point; // then create first alias to second new point // changing $b also changes $a as well, so $a's alias - // is also removed, alowing the destructor run + // is also removed, allowing the destructor run echo "After 'new Point(5, 7)', \$b is $b\n"; } // $b goes away, remove its alias from new point diff --git a/tests/classes/cloning.phpt b/tests/classes/cloning.phpt index 501dd5d..ce2256c 100644 --- a/tests/classes/cloning.phpt +++ b/tests/classes/cloning.phpt @@ -58,7 +58,7 @@ echo "Point count = " . Point2::getPointCount() . "\n"; var_dump($p4 = clone $p1); echo "Point count = " . Point2::getPointCount() . "\n"; -echo "================= use chained cloning in a class heirarchy =================\n"; +echo "================= use chained cloning in a class hierarchy =================\n"; class Employee { @@ -154,7 +154,7 @@ object(Point2)#6 (2) { int(0) } Point count = 4 -================= use chained cloning in a class heirarchy ================= +================= use chained cloning in a class hierarchy ================= object(Manager)#7 (2) { ["level":"Manager":private]=> int(23) diff --git a/tests/expressions/list/list_self_assign.phpt b/tests/expressions/list/list_self_assign.phpt index 4640912..33993c5 100644 --- a/tests/expressions/list/list_self_assign.phpt +++ b/tests/expressions/list/list_self_assign.phpt @@ -1,5 +1,5 @@ --TEST-- -Test variable occuring on both LHS and RHS of list() +Test variable occurring on both LHS and RHS of list() --FILE-- <?php diff --git a/tests/expressions/postfix_operators/subscripting.phpt b/tests/expressions/postfix_operators/subscripting.phpt index a6373ff..8e3fea0 100644 --- a/tests/expressions/postfix_operators/subscripting.phpt +++ b/tests/expressions/postfix_operators/subscripting.phpt @@ -26,7 +26,7 @@ foreach ($v as $k => $e) echo "key: ".$k.", value: ".$e."\n"; } -// try to access non-existant elements +// try to access non-existent elements echo "[7] contains >".($v[7] == NULL ? "NULL" : "??") ."<, [12] contains >".($v[12] == NULL ? "NULL" : "??")."<\n"; diff --git a/tests/expressions/relational_operators/comparisons1.phpt b/tests/expressions/relational_operators/comparisons1.phpt index 8059613..ab2a494 100644 --- a/tests/expressions/relational_operators/comparisons1.phpt +++ b/tests/expressions/relational_operators/comparisons1.phpt @@ -27,7 +27,7 @@ echo "\n"; ///* // NULL operand with all kinds of operands, swapping them over to make -// LHS/RHS order is irrelevent. +// LHS/RHS order is irrelevant. $oper1 = array(NULL); $oper2 = array(0, 100, -3.4, TRUE, FALSE, NULL, "", "123", "abc", [], [10,2.3]); diff --git a/tests/expressions/relational_operators/comparisons3.phpt b/tests/expressions/relational_operators/comparisons3.phpt index e2be80a..8fa0540 100644 --- a/tests/expressions/relational_operators/comparisons3.phpt +++ b/tests/expressions/relational_operators/comparisons3.phpt @@ -13,7 +13,7 @@ error_reporting(-1); ///* // Boolean operand with all kinds of operands, swapping them over to make -// LHS/RHS order is irrelevent. +// LHS/RHS order is irrelevant. $oper1 = array(TRUE, FALSE); $oper2 = array(0, 100, -3.4, TRUE, FALSE, NULL, "", "123", "abc", [], [10,2.3]); diff --git a/tests/expressions/relational_operators/comparisons4.phpt b/tests/expressions/relational_operators/comparisons4.phpt index 6f07769..d22935a 100644 --- a/tests/expressions/relational_operators/comparisons4.phpt +++ b/tests/expressions/relational_operators/comparisons4.phpt @@ -13,7 +13,7 @@ error_reporting(-1); ///* // Numeric strings with all kinds of operands, swapping them over to make -// LHS/RHS order is irrelevent. +// LHS/RHS order is irrelevant. $oper1 = array("10", "-5.1"); $oper2 = array(0, 100, -3.4, TRUE, FALSE, NULL, "", "123", "abc", [], [10,2.3]); diff --git a/tests/expressions/source_file_inclusion/include.phpt b/tests/expressions/source_file_inclusion/include.phpt index 55b8f4a..89fc0c0 100644 --- a/tests/expressions/source_file_inclusion/include.phpt +++ b/tests/expressions/source_file_inclusion/include.phpt @@ -17,7 +17,7 @@ echo "Inside file >" . __FILE__ . "< at line >" . __LINE__ . //var_dump(MY_MIN); //var_dump(MY_MAX); -// Try to include a non-existant file +// Try to include a non-existent file $fileName = 'unknown.inc'; $inc = include $fileName; diff --git a/tests/expressions/source_file_inclusion/include_once.phpt b/tests/expressions/source_file_inclusion/include_once.phpt index 305f573..2dd96de 100644 --- a/tests/expressions/source_file_inclusion/include_once.phpt +++ b/tests/expressions/source_file_inclusion/include_once.phpt @@ -11,7 +11,7 @@ PHP Spec test generated from ./expressions/source_file_inclusion/include_once.ph error_reporting(-1); -// Try to include a non-existant file +// Try to include a non-existent file $inc = include_once 'XXPositions.inc'; var_dump($inc); diff --git a/tests/expressions/source_file_inclusion/require.phpt b/tests/expressions/source_file_inclusion/require.phpt index e8db28b..a357d3d 100644 --- a/tests/expressions/source_file_inclusion/require.phpt +++ b/tests/expressions/source_file_inclusion/require.phpt @@ -17,7 +17,7 @@ echo "Inside file >" . __FILE__ . "< at line >" . __LINE__ . //var_dump(MY_MIN); //var_dump(MY_MAX); -// Try to require a non-existant file +// Try to require a non-existent file $fileName = 'unknown.inc'; //$inc = require $fileName; diff --git a/tests/expressions/source_file_inclusion/require_once.phpt b/tests/expressions/source_file_inclusion/require_once.phpt index 7e8410c..e3a6aaa 100644 --- a/tests/expressions/source_file_inclusion/require_once.phpt +++ b/tests/expressions/source_file_inclusion/require_once.phpt @@ -11,7 +11,7 @@ PHP Spec test generated from ./expressions/source_file_inclusion/require_once.ph error_reporting(-1); -// Try to require a non-existant file +// Try to require a non-existent file //$inc = require_once('XXPositions.inc'); //var_dump($inc); diff --git a/tests/expressions/unary_operators/cast.phpt b/tests/expressions/unary_operators/cast.phpt index 399ea3a..6e48753 100644 --- a/tests/expressions/unary_operators/cast.phpt +++ b/tests/expressions/unary_operators/cast.phpt @@ -90,9 +90,9 @@ echo "---------------\n"; class E { - const CON1 = 123; // constants irrelevent for conversion purposes - public function f() {} // methods irrelevent for conversion purposes - private static $fsprop = 0; // static properties irrelevent for conversion purposes + const CON1 = 123; // constants irrelevant for conversion purposes + public function f() {} // methods irrelevant for conversion purposes + private static $fsprop = 0; // static properties irrelevant for conversion purposes private $priv_prop; protected $prot_prop = 12.345; diff --git a/tests/expressions/yield_operator/yield.phpt b/tests/expressions/yield_operator/yield.phpt index 55c383d..0e472da 100644 --- a/tests/expressions/yield_operator/yield.phpt +++ b/tests/expressions/yield_operator/yield.phpt @@ -54,7 +54,7 @@ echo "===========================\n"; //*/ ///* -// define a generator that returns sucessive lines from a file of text +// define a generator that returns successive lines from a file of text function getTextFileLines($filename) { diff --git a/tests/functions/basics.phpt b/tests/functions/basics.phpt index c6d7ad6..5cebce8 100644 --- a/tests/functions/basics.phpt +++ b/tests/functions/basics.phpt @@ -53,7 +53,7 @@ function f2($p1, $p2) ", \$p2 = ".($p2 == NULL ? "NULL" : $p2)."\n"; } -// if fewer arguments are passed than there are paramaters declared, an ArgumentCountError is thrown +// if fewer arguments are passed than there are parameters declared, an ArgumentCountError is thrown try { f2(); diff --git a/tests/functions/using_byrefs_to_undefined_variables.phpt b/tests/functions/using_byrefs_to_undefined_variables.phpt index 756f630..65abfc3 100644 --- a/tests/functions/using_byrefs_to_undefined_variables.phpt +++ b/tests/functions/using_byrefs_to_undefined_variables.phpt @@ -35,7 +35,7 @@ function g(&$q) // to function f(), 0 passed var_dump($x); -f($x); // non-existant variable going in +f($x); // non-existent variable going in var_dump($x); $a = array(10, 20, 30); @@ -44,10 +44,10 @@ var_dump($a); f($a[0]); var_dump($a); -f($a[5]); // non-existant element going in +f($a[5]); // non-existent element going in var_dump($a); -f($a["red"]); // non-existant element going in +f($a["red"]); // non-existent element going in var_dump($a); //*/ ///* @@ -68,7 +68,7 @@ function h(&$p) // to function f(), 0 passed var_dump($x); -h($x); // non-existant variable going in +h($x); // non-existent variable going in var_dump($x); $a = array(10, 20, 30); @@ -77,10 +77,10 @@ var_dump($a); h($a[0]); var_dump($a); -h($a[5]); // non-existant element going in +h($a[5]); // non-existent element going in var_dump($a); -h($a["red"]); // non-existant element going in +h($a["red"]); // non-existent element going in var_dump($a); //*/ ///* @@ -102,11 +102,11 @@ $d = &k($a[0]); var_dump($d); var_dump($a); -$d = &k($a[5]); // non-existant element going in +$d = &k($a[5]); // non-existent element going in var_dump($d); var_dump($a); -$d = &k($a["red"]); // non-existant element going in +$d = &k($a["red"]); // non-existent element going in var_dump($d); var_dump($a); //*/