Re: [PHP-DEV] Re: [PHP-QA] big summary OO From: André Langhorst (A.Langhorst <email protected>)
Date: 11/12/00

> AL>> there&acute;s not possibility to CHANGE global
>
> Yes there is - $GLOBALS.

I prophesied what Zeed or Andi said a few messages later, it should read:
there's no possibility to CHANGE how "global" works

> Well, serializing seems to work for me (I'll know if it works for others
> when 4.0.4 hits the masses). As for dumping - I'm still in the search for
> ideas on format. I'd really hate to make it multi-pass just because of
> this.

If it serializes circular references, I'll try to serialize one of my
objects, guessing it's already checked in?

> And how the puny merge function is going to know if there are other
> references to the old zval of $a (including global and probably
> others) and change them? You effectively asking to make a function to
have
> two addresses in memory point to the same place. I guess it's not
possible
> unless we build some virtual memory layer in PHP :)

I can't exactly remember how I got trying to do such merging months ago
and I yet haven't thought about whether it would be a nice construct to
make code mure fluent and opens ways you could not go without it or
simply make code more unreadable and just helps insane programmers
coding worse, but if it just isn't possible I won't think about :)

andré

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>