php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11705 Behavior of odbc_fetch_into function changed between 4.0.5 and 4.0.6
Submitted: 2001-06-26 13:55 UTC Modified: 2001-06-26 17:57 UTC
From: doc at vulcanmicro dot com Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.0.6 OS: Probably any, my test on Solaris
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: doc at vulcanmicro dot com
New email:
PHP Version: OS:

 

 [2001-06-26 13:55 UTC] doc at vulcanmicro dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-26 17:57 UTC] kalowsky@php.net
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... 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 03:01:32 2024 UTC