diff options
-rwxr-xr-x | tests/lang/bug29566.phpt | 2 | ||||
-rw-r--r-- | tests/strings/offsets_chaining_5.phpt | 11 |
2 files changed, 10 insertions, 3 deletions
diff --git a/tests/lang/bug29566.phpt b/tests/lang/bug29566.phpt index 5f292bd759..16aec8fc73 100755 --- a/tests/lang/bug29566.phpt +++ b/tests/lang/bug29566.phpt @@ -12,5 +12,7 @@ foreach($var['nosuchkey'] as $v) { ?> ===DONE=== --EXPECTF-- +Warning: Illegal string offset 'nosuchkey' in %sbug29566.php on line %d + Warning: Invalid argument supplied for foreach() in %sbug29566.php on line %d ===DONE=== diff --git a/tests/strings/offsets_chaining_5.phpt b/tests/strings/offsets_chaining_5.phpt index f0e27c2cfd..efcf2f3074 100644 --- a/tests/strings/offsets_chaining_5.phpt +++ b/tests/strings/offsets_chaining_5.phpt @@ -15,8 +15,13 @@ var_dump($array['expected_array']['foo']['bar']); --EXPECTF-- bool(true) string(6) "foobar" -bool(true) -string(1) "f" -bool(true) +bool(false) + +Warning: Illegal string offset 'foo' in %soffsets_chaining_5.php on line %d string(1) "f" +bool(false) + +Warning: Illegal string offset 'foo' in %soffsets_chaining_5.php on line %d +Warning: Illegal string offset 'bar' in %soffsets_chaining_5.php on line %d +string(1) "f" |