Derick Rethans wrote:
> On Wed, 20 Jul 2005, Andrey Nikolaev wrote:
>
>
>>function &a() {
>> if(1==2)
>> return new B; //some reference...
>> else
>> return null; //error, we cant create B
>>}
>>$b_instance = a();
>>?>
>
>
> Why are you returning by reference in the first place here? "new B"
> already creates a copy.
>
> Derick
>
That's not a point, i'm telling about "return null".
However "return & new B" is also not allowed...
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php