Bug #11705 Updated: Behavior of odbc_fetch_into function changed between 4.0.5 and 4.0.6
| From: | kalowsky@php.net | Date: | Tue, 26 Jun 2001 21:57:34 +0000 |
| Subject: | Bug #11705 Updated: Behavior of odbc_fetch_into function changed between 4.0.5 and 4.0.6 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-58111@lists.php.net to get a copy of this message | ||
ID: 11705
Updated by: kalowsky
Reported By: doc@vulcanmicro.com
Old-Status: Open
Status: Closed
Bug Type: ODBC related
Operating system:
PHP Version: 4.0.6
Assigned To:
Comments:
interesting that the second line works. you no longer need
to pass $fields as a reference to this function. this is
an attempt for odbc to fall into line with the rest of the
PHP functionality. it was actually done in 4.0.5 but i'm
thinking it was taken out due to the excessively long RC
process... and i've since forgotten that change. it's time
for me to update the documentation...
Previous Comments:
---------------------------------------------------------------------------
[2001-06-26 13:55:20] doc@vulcanmicro.com
Going from php 4.0.5 to php 4.0.6, the following syntax
nolonger works:
odbc_fetch_into($result,$start-1,&$fields);
In 4.0.5 it works, in 4.0.6 it produces this error:
Only variables can be passed by reference
The following lines DO work however:
$tmp=$start-1;
odbc_fetch_into($result,$tmp,&$fields);
Configure line:
./configure --prefix=/usr --sysconfdir=/etc
--localstatedir=/var --with-apxs=/opt/apache/sbin/apxs
--enable-track-vars --enable-calendar --with-gdbm
--enable-filepro --enable-dbase --enable-ftp --with-imap
--with-java=/usr/java1.1 --with-ldap=/usr/src/openldap-1.2.9
--with-ibm-db2=/opt/IBMdb2/V7.1 --enable-trans-sid
--with-mysql --enable-sysvshm --enable-sysvsem
--with-mcal=/usr --with-ming --with-openssl --with-gd
--with-pdflib --with-jpeg-dir=/opt/sfw
--with-png-dir=/opt/sfw --with-zlib
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11705&edit=2