ID: 11628
User Update by: [EMAIL PROTECTED]
Status: Closed
Bug Type: ODBC related
Operating system: Win2k
PHP Version: 4.0.6
Description: odbc_fetch_into is broken
right, i think a little background is called for.
4.0.x<5:
odbc_fetch_into($qid,1,&$row);
4.0.5:
odbc_fetch_into($qid,1,$row);
4.0.6
$i=1;
odbc_fetch_into($qid,$i,$row);
what has this got to do with the 3rd parameter? The need for the reference operator
was removed in 4.0.5 and everything worked fine. why does the row number suddenly need
to be passed by reference? its not like its going to be updated by odbc_fetch_into is
it?
Previous Comments:
---------------------------------------------------------------------------
[2001-06-27 10:10:48] [EMAIL PROTECTED]
it is not broken.
this functionality was changed to remove the need for the final variable to be a
reference. unfortunately due to the nature of the function, the final variable is
ALWAYS required to be a reference. this functionality will change in 4.1 to better
reflect a more intelligent ordering of the variables and will allow your first example
to work.
---------------------------------------------------------------------------
[2001-06-23 14:42:50] [EMAIL PROTECTED]
correct version.
---------------------------------------------------------------------------
[2001-06-23 08:43:18] [EMAIL PROTECTED]
this is for 4.0.6, but there's no option for that yet.... 4.0.5 works fine.
easiest to describe this by example:
odbc_fetch_into($qid,1,$row);
gives
Fatal error: Only variables can be passed by reference in <script> on line <line>
$i=1;
odbc_fetch_into($qid,$i,$row);
works perfectly.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=11628
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]