summaryrefslogtreecommitdiff
path: root/tests/strings/offsets_chaining_4.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/strings/offsets_chaining_4.phpt')
-rw-r--r--tests/strings/offsets_chaining_4.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/strings/offsets_chaining_4.phpt b/tests/strings/offsets_chaining_4.phpt
new file mode 100644
index 000000000..8049f66a0
--- /dev/null
+++ b/tests/strings/offsets_chaining_4.phpt
@@ -0,0 +1,11 @@
+--TEST--
+testing the behavior of string offset chaining
+--INI--
+error_reporting=E_ALL | E_DEPRECATED
+--FILE--
+<?php
+$string = "foobar";
+var_dump(isset($string{0}{0}[0][0]));
+?>
+--EXPECTF--
+Fatal error: Cannot use string offset as an array in %s on line %d