diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2005-11-16 15:13:20 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2005-11-16 15:13:20 +0000 |
| commit | cce5e8c9ea845ddd180a61d64bf1bfef34bd3218 (patch) | |
| tree | 01ab48c71a6033d25b6f3baf8e8ff9825706a3d8 /ext | |
| parent | 9aeb125f4a8158cafcfa208007e51e918b3489c8 (diff) | |
| download | php-git-cce5e8c9ea845ddd180a61d64bf1bfef34bd3218.tar.gz | |
Updated tests to use [] instead of {}
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/date/tests/date.phpt | 4 | ||||
| -rw-r--r-- | ext/iconv/tests/iconv_substr.phpt | 2 | ||||
| -rw-r--r-- | ext/standard/tests/file/bug24482.phpt | 2 | ||||
| -rw-r--r-- | ext/standard/tests/time/idate.phpt | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/ext/date/tests/date.phpt b/ext/date/tests/date.phpt index 87cae0b310..ccdb3cda94 100644 --- a/ext/date/tests/date.phpt +++ b/ext/date/tests/date.phpt @@ -6,13 +6,13 @@ $tmp = "cr"; putenv ("TZ=GMT0"); for($a = 0;$a < strlen($tmp); $a++){ - echo $tmp{$a}, ': ', date($tmp{$a}, 1043324459)."\n"; + echo $tmp[$a], ': ', date($tmp[$a], 1043324459)."\n"; } putenv ("TZ=MET"); for($a = 0;$a < strlen($tmp); $a++){ - echo $tmp{$a}, ': ', date($tmp{$a}, 1043324459)."\n"; + echo $tmp[$a], ': ', date($tmp[$a], 1043324459)."\n"; } ?> --EXPECT-- diff --git a/ext/iconv/tests/iconv_substr.phpt b/ext/iconv/tests/iconv_substr.phpt index efa746e6de..5ee01d488a 100644 --- a/ext/iconv/tests/iconv_substr.phpt +++ b/ext/iconv/tests/iconv_substr.phpt @@ -9,7 +9,7 @@ iconv.internal_charset=ISO-8859-1 function hexdump($str) { $len = strlen($str); for ($i = 0; $i < $len; ++$i) { - printf("%02x", ord($str{$i})); + printf("%02x", ord($str[$i])); } print "\n"; } diff --git a/ext/standard/tests/file/bug24482.phpt b/ext/standard/tests/file/bug24482.phpt index 4bf12e8f66..f545f1addf 100644 --- a/ext/standard/tests/file/bug24482.phpt +++ b/ext/standard/tests/file/bug24482.phpt @@ -13,7 +13,7 @@ $globdirs = glob("*", GLOB_ONLYDIR); $dirs = array(); $dh = opendir("."); while (is_string($file = readdir($dh))) { - if ($file{0} === ".") continue; + if ($file[0] === ".") continue; if (!is_dir($file)) continue; $dirs[] = $file; } diff --git a/ext/standard/tests/time/idate.phpt b/ext/standard/tests/time/idate.phpt index 485f9804af..efeef665fd 100644 --- a/ext/standard/tests/time/idate.phpt +++ b/ext/standard/tests/time/idate.phpt @@ -6,7 +6,7 @@ putenv ("TZ=GMT0"); $tmp = "UYzymndjHGhgistwLBIW"; for($a = 0;$a < strlen($tmp); $a++){ - echo $tmp{$a}, ': ', idate($tmp{$a}, 1043324459)."\n"; + echo $tmp[$a], ': ', idate($tmp[$a], 1043324459)."\n"; } ?> --EXPECT-- |
