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'?
Yeah, you got it right.
Andi
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]