summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGeorge Peter Banyard <girgias@php.net>2020-05-22 16:52:17 +0200
committerGeorge Peter Banyard <girgias@php.net>2020-05-22 16:52:17 +0200
commitc803499e2317a879dc8b0429f39643bd35892b15 (patch)
tree4aa2fbe702854a99c68dffd928b2b06af87e47d4 /tests
parenta307e48d674cedfa5c46b8af86be1ed9e7188b0d (diff)
downloadphp-git-c803499e2317a879dc8b0429f39643bd35892b15.tar.gz
Remove depreacted curly brace offset syntax
Closes GH-5221
Diffstat (limited to 'tests')
-rw-r--r--tests/strings/offsets_general.phpt38
1 files changed, 0 insertions, 38 deletions
diff --git a/tests/strings/offsets_general.phpt b/tests/strings/offsets_general.phpt
index b2ceea088a..7bbe9618d5 100644
--- a/tests/strings/offsets_general.phpt
+++ b/tests/strings/offsets_general.phpt
@@ -12,34 +12,8 @@ var_dump(isset($string[0][0]));
var_dump($string["foo"]);
var_dump(isset($string["foo"]["bar"]));
-const FOO_DEPRECATED = "BAR"{0};
-var_dump(FOO_DEPRECATED);
-var_dump([$string{0}]); // 1 notice
-var_dump($string{1});
-var_dump(isset($string{0}));
-var_dump(isset($string{0}{0})); // 2 notices
-var_dump($string{"foo"});
-var_dump(isset($string{"foo"}{"bar"})); // 2 notices
?>
--EXPECTF--
-
-Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d
-
-Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d
-
-Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d
-
-Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d
-
-Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d
-
-Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d
-
-Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d
-
-Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d
-
-Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d
string(1) "B"
string(1) "f"
string(1) "o"
@@ -49,15 +23,3 @@ bool(true)
Warning: Illegal string offset 'foo' in %s line %d
string(1) "f"
bool(false)
-string(1) "B"
-array(1) {
- [0]=>
- string(1) "f"
-}
-string(1) "o"
-bool(true)
-bool(true)
-
-Warning: Illegal string offset 'foo' in %s line %d
-string(1) "f"
-bool(false)