Re: call-time pass-by-reference in OCI8

From: Date: Wed, 04 Oct 2000 14:58:14 +0000
Subject: Re: call-time pass-by-reference in OCI8
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18598@lists.php.net to get a copy of this message
On Fri, Sep 29, 2000 at 05:44:49PM +0100, Tim Parkin wrote: > 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- not all internal functions have been updated to work without allow_call_time_pass_reference beeing set to true. what exact function gave you that problem and what version of PHP 4 are you using? tc > > 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 >

« previous php.general (#18598) next »