On Thu, Jan 25, 2001 at 04:43:26PM +0100, Harald Radi wrote:
> > -----Ursprungliche Nachricht-----
> > Von: Harald Radi [mailto:[EMAIL PROTECTED]]
> > Gesendet: Donnerstag, 25. Janner 2001 16:43
> > An: Stig Venaas
> > Betreff: AW: [PHP-DEV] zval question
> > > -----Ursprungliche Nachricht-----
> > > Von: Stig Venaas [mailto:[EMAIL PROTECTED]]
> > > Gesendet: Donnerstag, 25. Janner 2001 07:51
> > > An: Harald Radi
> > > Cc: PHP Developer List
> > > Betreff: Re: [PHP-DEV] zval question
> > <b>Warning</b>:  Call-time pass-by-reference has been deprecated
> > - argument pass
> > ed by value;  If you would like to pass it by reference, modify
> > the declaration
> > of [runtime function name]().  If you would like to enable
> > call-time pass-by-ref
> > erence, you can set allow_call_time_pass_reference to true in
> > your INI file.  Ho
> > wever, future versions may not support this any longer.  in
> > <b>c:\testwebs\com.p
> > hp</b> on line <b>10</b><br>
[...]
> > yes, but i want to let the scriptwriter decide if his variable
> > should be overwritten by either passing
> > it by referece or by value.
> > on the other hand it makes live easier for my, since i don't know
> > if the method expects a reference or a value.
> > the scriptwriter should know this.

If the user can't specify at run time, it will be decided by the
declaration, so an argument will always or never be a reference,
depending on your declaration. You might have to change the
interface then. I haven't seen the interface, but how about
forcing reference and always return new value? It shouldn't be a
problem except that it's not backwards compatible. The good thing
is that you won't have to check if the argument is a reference.

You probably knew this too.

Stig

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to