[dokuwiki] Re: Installing DokuWiki on Strato triggers "Call-time pass-by-reference has been deprecated-warning"

On Sat, 24 Nov 2007 15:53:09 +0100
Ferdinand Soethe <sammler@xxxxxxxxxx> wrote:

> Andreas Gohr wrote:
> 
> > It's the right method but you are callng it with a calltime
> > reference. Leave out the & beforethe variable name in the method
> > call and the error should be gone.
> 
> Thanks Andi,
> 
> I understand that option. But then I only get one return
> value (the resolved filename) and no file-exists-result even
> though it it calculated within that function.

No. The function defines that the variable will be passed by reference
already. You don't have to specify it your self (that's what this
option is about: reference on calltime vs. compile time). Just call it
without the ampersand and it will work.

Andi

-- 
http://www.splitbrain.org

Other related posts: