Re: Engine 2
| From: | Andi Gutmans | Date: | Fri, 10 Aug 2001 14:35:01 +0000 |
| Subject: | Re: Engine 2 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-62824@lists.php.net to get a copy of this message | ||
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) {Yeah, you got it right. Andi$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'?