[PHP-DB] call-time pass-by-reference in OCI8 From: Tim Parkin (Tim.Parkin <email protected>)
Date: 09/29/00

Hi,

I have been having a few 'problems' binding variables for using cursors
within php4 using the OCI8 functionality.

When I pass the variables by reference I am getting the message

+ACI-Warning: Call-time pass-by-reference has been deprecated - argument passed
by value+ADs- If you would like to pass it by reference, modify the declaration
of ocibindbyname(). If you would like to enable call-time pass-by-reference,
you can set allow+AF8-call+AF8-time+AF8-pass+AF8-reference to true in your INI file.
However, future versions may not support this any longer.+ACI-

It's the thought of rewriting php's OCI8 functionality that worries me.

Presumably there is good reason for the deprecation of pass-by-reference.
Can someone explain to me the reasoning behind this move and the
alternatives to passing variables by reference. (I realise I can pass by
value but I know of no languages that bar variable pass-by-reference.
Although I don't know that many languages

Tim Parkin
Web Development Manager
Didio, Leeds UK