1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00

Fix tests

This commit is contained in:
Xinchen Hui
2011-12-19 16:57:36 +00:00
parent 2f62602c03
commit 2fe9f37026
2 changed files with 11 additions and 4 deletions
+2
View File
@@ -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===
+9 -4
View File
@@ -15,8 +15,13 @@ var_dump($array['expected_array']['foo']['bar']);
--EXPECTF--
bool(true)
string(6) "foobar"
bool(true)
string(1) "f"
bool(true)
string(1) "f"
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"