From b2d384355d5cf653ebe96ae149d1384063658eab Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Wed, 23 Mar 2011 08:48:32 +0000 Subject: [PATCH] Bah, these should have been in the last commit too. Update expected output for further tests that now generate warnings after r306931. --- tests/lang/engine_assignExecutionOrder_008.phpt | 14 ++++++++++---- tests/lang/foreachLoop.016.phpt | 10 +++++++++- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/tests/lang/engine_assignExecutionOrder_008.phpt b/tests/lang/engine_assignExecutionOrder_008.phpt index 0d699bc649296..1333bcda8af36 100644 --- a/tests/lang/engine_assignExecutionOrder_008.phpt +++ b/tests/lang/engine_assignExecutionOrder_008.phpt @@ -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 \ No newline at end of file +C::$p->q=f(): good diff --git a/tests/lang/foreachLoop.016.phpt b/tests/lang/foreachLoop.016.phpt index dc31a5072e613..d570aba316713 100644 --- a/tests/lang/foreachLoop.016.phpt +++ b/tests/lang/foreachLoop.016.phpt @@ -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" @@ -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" @@ -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" -} \ No newline at end of file +}