Re: Engine 2
| From: | Heikki Korpela | Date: | Fri, 10 Aug 2001 14:31:17 +0000 |
| Subject: | Re: Engine 2 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-62820@lists.php.net to get a copy of this message | ||
On Fri, 10 Aug 2001, Andi Gutmans wrote:
> I'm also
> interested in how many scripts are actually broken by the fact that objects
> are not copied when sent to functions by value and so on.
Did I get this right:
<?php
function func1($object) {
$object->foo = 'bar';
}
function func2() {
$object = new StdClass;
$object->foo = 'not bar';
func1($object);
echo $object->foo;
}
func2();
?>
After the engine change, the above would print 'bar'?