From: Andre Langhorst Date: Wed, 6 Dec 2000 18:55:52 +0000 (+0000) Subject: updated with =& new syntax X-Git-Tag: php-4.0.5RC1~992 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b03af37e1927f31c1d98cc0a3bc0165d878bbe0e;p=php updated with =& new syntax --- 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