Re: [PHP4BETA] return references branch merged into the main repository

From: Date: Thu, 16 Dec 1999 09:57:13 +0000
Subject: Re: [PHP4BETA] return references branch merged into the main repository
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-7994@lists.php.net to get a copy of this message
ZS>> To assign a reference, you must use the special assign-reference ZS>> notation. When assigning a variable, the notation does the job of But this notation seems not consistent now. Neither: $a = new foo_bar(); $x = new foo_bar(); $b = &($choose_a_b ? ret_ref($a) : ret_ref($b)); or $a = new foo_bar(); $x = new foo_bar(); $b = $choose_a_b ? &ret_ref($a) : &ret_ref($b); do not work. Even $b = &(foo()); doesn't work. So what is this & and what it's linked to? If it's "=&" operator, why first is illegal? If it operates on function call, why second is illegal? -- Stanislav Malyshev stas@zend.com +972-50-624945

« previous php.version4 (#7994) next »