Re: Engine 2

From: Date: Fri, 10 Aug 2001 14:37:36 +0000
Subject: Re: Engine 2
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-62827@lists.php.net to get a copy of this message
By the way, one of the things that interests me is exactly how much this change breaks people's code. My guess is that it won't break most people's apps. In any case, there will probably be a compat mode where the old copying is forced. Andi At 05:31 PM 8/10/2001 +0300, Heikki Korpela wrote:
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'?


« previous php.dev (#62827) next »