Try using the CGI-php script if you not already, create a file called php.ini with the following option in it
allow_call_time_pass_reference = On
Thatâs known as a call-time pass-by-reference, which PHP controls with the following setting in php.ini:
By default, in recent PHP releases the above setting should be switched to Off; turning it on is âfrowned uponâ by PHPâs makers. Switched off, PHP will generate warning errors every time a function call specifies an argument should be passed by reference. As such, itâs good practice to leave this setting off.
The reason why call time pass by reference is a âbad thingâ is that call time passing by reference can make code extremely difficult to follow. Iâve occasionally seen PHP XML parsers written using a call-time pass-by-referenceâitâs nearly impossible to gain any idea of whatâs going on.
The âdecisionâ as to whether a variable is passed by reference or not is one that belongs to the function being called, not the code that calls it. The above code written correctly would look like this:
// Accept by reference - good practice
$myMessage = ‘Hello World!’;