cvs: php4 /tests/lang 030.phpt
| From: | Andr� Langhorst | Date: | Wed, 06 Dec 2000 18:55:53 +0000 |
| Subject: | cvs: php4 /tests/lang 030.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2976@lists.php.net to get a copy of this message | ||
waldschrott Wed Dec 6 10:55:53 2000 EDT
Modified files:
/php4/tests/lang 030.phpt
Log:
updated with =& new syntax
Index: php4/tests/lang/030.phpt
diff -u php4/tests/lang/030.phpt:1.1 php4/tests/lang/030.phpt:1.2
--- php4/tests/lang/030.phpt:1.1 Wed Dec 6 09:56:53 2000
+++ php4/tests/lang/030.phpt Wed Dec 6 10:55:52 2000
@@ -17,17 +17,17 @@
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