summaryrefslogtreecommitdiff
path: root/tests/lang/bug26696.phpt
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-11-16 15:13:20 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-11-16 15:13:20 +0000
commitcce5e8c9ea845ddd180a61d64bf1bfef34bd3218 (patch)
tree01ab48c71a6033d25b6f3baf8e8ff9825706a3d8 /tests/lang/bug26696.phpt
parent9aeb125f4a8158cafcfa208007e51e918b3489c8 (diff)
downloadphp-git-cce5e8c9ea845ddd180a61d64bf1bfef34bd3218.tar.gz
Updated tests to use [] instead of {}
Diffstat (limited to 'tests/lang/bug26696.phpt')
-rw-r--r--tests/lang/bug26696.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lang/bug26696.phpt b/tests/lang/bug26696.phpt
index e51978b3d2..dae182d307 100644
--- a/tests/lang/bug26696.phpt
+++ b/tests/lang/bug26696.phpt
@@ -6,7 +6,7 @@ Bug #26696 (string index in a switch() crashes with multiple matches)
$str = 'asdd/?';
$len = strlen($str);
for ($i = 0; $i < $len; $i++) {
- switch ($str{$i}) {
+ switch ($str[$i]) {
case '?':
echo "OK\n";
break;
@@ -14,7 +14,7 @@ for ($i = 0; $i < $len; $i++) {
}
$str = '*';
-switch ($str{0}) {
+switch ($str[0]) {
case '*';
echo "OK\n";
break;