diff options
Diffstat (limited to 'tests/lang/bug26696.phpt')
| -rw-r--r-- | tests/lang/bug26696.phpt | 4 |
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; |
