Array and string offset access syntax with curly braces is deprecated
[m6w6/ext-http] / tests / client021.phpt
index f262a7ac7c4c9f64d58f693b1d9293efb0a4184b..702685dd125f6efb8c30b976d9f2c9a4d1271195 100644 (file)
@@ -16,7 +16,7 @@ function dump() {
        global $tmpfile, $section;
        printf("# %s\n", $section);
        foreach (file($tmpfile) as $line) {
-               if ($line{0} === "#" || $line === "\n") {
+               if ($line[0] === "#" || $line === "\n") {
                        continue;
                }
                printf("%s:\t%s", $tmpfile, $line);