diff options
Diffstat (limited to 'tests/strings/offsets_chaining_2.phpt')
| -rw-r--r-- | tests/strings/offsets_chaining_2.phpt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/strings/offsets_chaining_2.phpt b/tests/strings/offsets_chaining_2.phpt new file mode 100644 index 000000000..7a567cd12 --- /dev/null +++ b/tests/strings/offsets_chaining_2.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($string{0}{0}[0][0]); +?> +--EXPECTF-- +Fatal error: Cannot use string offset as an array in %s on line %d |
