php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11669 Wrong error code using odbc_fetch_into
Submitted: 2001-06-25 11:15 UTC Modified: 2001-06-26 17:55 UTC
From: S dot Dreyer at celleweb dot de Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: S dot Dreyer at celleweb dot de
New email:
PHP Version: OS:

 

 [2001-06-25 11:15 UTC] S dot Dreyer at celleweb dot de
Hello,

i tried php-4.0.6 and the following bug accured:
Fatal error: Only variables can be passed by reference in /usr/local/httpd/htdocs/kennzeichensuche.php on line 98

The code is correct and works with 4.0.4pl1 and 4.0.5

thanks

Stefan Dreyer

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-26 02:52 UTC] derick@php.net
Please add the smallest possible script which reproduces this behaviour to this bugreport.
 [2001-06-26 04:30 UTC] S dot Dreyer at celleweb dot de
$sql="select RSVUKZ,RSVERKB,RSVERKN from $db2_dsn.$db2_database.$db2_akz where

$oid=odbc_exec($dbid,$sql);

for ($i=0;$i<$num_rows;$i++) {

  odbc_fetch_into($oid,$i+1,&$erg);
                               ^
                               +--- Error
}


 [2001-06-26 17:55 UTC] kalowsky@php.net
as of PHP 4 we're (PHP group) trying to end using 
variables.  this was changed in 4.0.5, but I guess got 
moved out due to its rather LONG RC cycle.  sorry about 
that.

you no longer need to use a reference for this function 
though.  guess it's time to update the documentation too.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 08:01:27 2025 UTC