Skip to content

Commit

Permalink
Bah, these should have been in the last commit too. Update expected o…
Browse files Browse the repository at this point in the history
…utput for

further tests that now generate warnings after r306931.
  • Loading branch information
LawnGnome committed Mar 23, 2011
1 parent f9b8088 commit b2d3843
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
14 changes: 10 additions & 4 deletions tests/lang/engine_assignExecutionOrder_008.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,16 @@ $$x=f(): good
${'i'}=f(): good
$i[0]=f(): good
$i[0][0]=f(): good
$i->p=f(): good
$i->p->q=f(): good
$i->p=f():
Warning: Creating default object from empty value in %s on line %d
good
$i->p->q=f():
Warning: Creating default object from empty value in %s on line %d
good
$i->p[0]=f(): good
$i->p[0]->p=f(): good
$i->p[0]->p=f():
Warning: Creating default object from empty value in %s on line %d
good
C::$p=f(): good
C::$p[0]=f(): good
C::$p->q=f(): good
C::$p->q=f(): good
10 changes: 9 additions & 1 deletion tests/lang/foreachLoop.016.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,16 @@ array(1) {
}

$a->b

Warning: Creating default object from empty value in %s on line %d
array(1) {
[0]=>
string(8) "original"
}

$a->b->c

Warning: Creating default object from empty value in %s on line %d
array(1) {
[0]=>
string(8) "original"
Expand All @@ -174,6 +178,8 @@ array(1) {
}

$a->b[0]->c

Warning: Creating default object from empty value in %s on line %d
array(1) {
[0]=>
string(8) "original"
Expand All @@ -192,7 +198,9 @@ array(1) {
}

C::$a[0]->b

Warning: Creating default object from empty value in %s on line %d
array(1) {
[0]=>
string(8) "original"
}
}

0 comments on commit b2d3843

Please sign in to comment.