Re: big summary OO

From: Date: Sun, 12 Nov 2000 10:00:30 +0000
Subject: Re: big summary OO
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-37813@lists.php.net to get a copy of this message
AL>> there╢s not possibility to CHANGE global Yes there is - $GLOBALS. AL>> trying to serialize references and avoiding REFERENCED variables to be AL>> printed out by var_dump() infinitely in some cases 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. AL>> 2) regarding REFERENCES, question (stas, zeev, Andi): AL>> AL>> in case anoyone of you hasn╢t developed biometric identification for AL>> variables, is there are possibility to MERGE referenced variables (our AL>> last results were that there is no possibility) AL>> AL>> > function tt() { AL>> > global $a; AL>> > $a = 5; AL>> > $b = 6; AL>> > merge($a,$b); } AL>> so that all these three variables (the global $a, local $a, local $b) AL>> reference to the same zval which is taken from the second arguement of AL>> merge(), taking from $b? 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 :) -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.106

« previous php.dev (#37813) next »