Re: Question RE:allow_call_time_pass_reference

From: Date: Tue, 12 Sep 2000 22:49:46 +0000
Subject: Re: Question RE:allow_call_time_pass_reference
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-33126@lists.php.net to get a copy of this message
And so if allow_call_time_pass_reference = Off then an error will be generated unlike in the following expression which will not generate an error: $foo = array( 1 => 'One', 2 => 'Two' ); $fee = &$foo[2]; If I am incorrect could someone point out the actual purpose behind this variable. If I am right could someone indicate that I am right :) Thanks for your time in advance.
You´re mixing up things here, "allow_call_time_pass_reference" is meant to allow that a reference is *passed* to a *function/method* (which is deprecated behaviour in php 4) rather then telling the function to treat a parameter as a reference $fee = &$foo[2]; simply creates a reference, you should perhaps read the new section "references explained" in the manual regards, andré

« previous php.dev (#33126) next »