]> granicus.if.org Git - php/commitdiff
updated with =& new syntax
authorAndre Langhorst <waldschrott@php.net>
Wed, 6 Dec 2000 18:55:52 +0000 (18:55 +0000)
committerAndre Langhorst <waldschrott@php.net>
Wed, 6 Dec 2000 18:55:52 +0000 (18:55 +0000)
tests/lang/030.phpt

index 9215404a4d1543cb9a25a02ae747ca1c82811037..162997fca91a0bf23931f5da37a3d91d6412e290 100644 (file)
@@ -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