RE: [PHP-DB] ocidefinebyname() error PHP 4.02
| From: | Tim Parkin | Date: | Tue, 10 Oct 2000 09:40:44 +0000 |
| Subject: | RE: [PHP-DB] ocidefinebyname() error PHP 4.02 | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-3461@lists.php.net to get a copy of this message | ||
Steve,
It's basically that php4 has been comnfigured to support pass by value
unless the function being called has explicitly stated that an argument is
pass by reference (ie function ($input1,&$input2) {blah} ) excuse this code
if it's wrong but it passes the idea along.
The problem with the oci routines is that they are not defined like this and
hence with the new versions of php there is a warning if you try to pass by
reference. I presume new oci libraries will be released soon. in the
meantime a php.ini variable can be set to allow pass_by_reference but with a
small performance hit.
Hope this helps and look forward to any responses about OCI rewrites (or
should I say tweaks)
Tim Parkin
Didio Communications
>Hi all,
>
>I have just got the following error when i moved my files to another
>server.. i have searched the doco but can't find any clues !!
>
>Warning: Call-time pass-by-reference has been deprecated - argument
>passed by value; If you would like to pass it by reference, modify
>the declaration of ocidefinebyname().
>
>TIA
>Steve Farmer
---------------------------------------------------
"I disagree completely with what you are saying, but I will defend to
the death your right to say it" - Voltaire
Support free speech; visit http://www.efa.org.au/
Heads Together Systems Pty Ltd http://www.hts.com.au
Email: hts@hts.com.au Tel: 612 9982 6767 Fax: 612 9981 3081
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net