[PHP-DEV] PHP 4.0 Bug #9453 Updated: Reference issue From: stas <email protected>
Date: 03/08/01

ID: 9453
Updated by: stas
Reported By: mailling <email protected>
Old-Status: Open
Status: Feedback
Bug Type: Scripting Engine problem
Assigned To:
Comments:

Works for me. What are the results in your case?

Previous Comments:
---------------------------------------------------------------------------

[2001-02-26 05:07:37] mailling <email protected>
I tried it with: allow_call_time_pass_reference = Off and allow_call_time_pass_reference = On

It seems that the result is not send automatically as a reference

class A{

function &b(&$f) {
        $d=&$f;
        $f='5';
        return $d;
}

}

$c='3';
$d=new A();
$h=$d->b($c);
$h=&$d->b($c); //The & is needed to work well
$h='9';
echo $c. ' '.$h;

The value of c is not updated correctly if we don't ask for a reference

---------------------------------------------------------------------------

ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9453&edit=2

-- 
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>