Question RE:allow_call_time_pass_reference
| From: | Robert Cummings | Date: | Tue, 12 Sep 2000 22:57:31 +0000 |
| Subject: | Question RE:allow_call_time_pass_reference | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33124@lists.php.net to get a copy of this message | ||
Could someone explain this briefly... My thoughts are that
it refers to function calls where an explicit reference is
used. ie.
function foo( &$fee )
{
...
}
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.
Cordially,
Rob.
--
.-----------------.
| Robert Cummings |
:-----------------`----------------------------.
| Mail : mailto:robert.cummings@webmotion.com |
| Phone : (613) 731-4046 x.109 |
:----------------------------------------------:
| Website : http://www.webmotion.com |
| Fax : (613) 260-9545 |
`----------------------------------------------'