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

-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to