diff options
-rw-r--r-- | tests/lang/030.phpt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lang/030.phpt b/tests/lang/030.phpt index 9215404a4d..162997fca9 100644 --- a/tests/lang/030.phpt +++ b/tests/lang/030.phpt @@ -17,17 +17,17 @@ function &foo2(&$foo) { return $foo; } -$bar1 = new foo('constructor'); +$bar1 =& new foo('constructor'); $bar1->Name = 'outside'; $bar1->echoName(); +$List->echoName(); -$bar1 = foo2(new foo('constructor')); +$bar1 =& foo2(new foo('constructor')); $bar1->Name = 'outside'; $bar1->echoName(); $List->echoName(); -print ($names==array('constructor','constructor','constructor','constructor','constructor')) ? 'success:':'failure'; -?> +print ($names==array('constructor','outside','outside','constructor','outside','outside')) ? 'success':'failure'; ?> --EXPECT-- -success +success
\ No newline at end of file |