Bug #11628 Updated: odbc_fetch_into is broken

From: Date: Thu, 28 Jun 2001 14:12:41 +0000
Subject: Bug #11628 Updated: odbc_fetch_into is broken
Groups: php.dev 
Request: Send a blank email to php-dev+get-58333@lists.php.net to get a copy of this message
ID: 11628 Updated by: sniper Reported By: charles@invis.net Old-Status: Analyzed Status: Closed Bug Type: ODBC related Operating system: PHP Version: 4.0.6 Assigned To: Comments: This function has to be redesigned but this has to wait for PHP 4.1.x release. At the moment this is the intented behaviour. Not a bug. But expect this function to change in PHP 4.1.x. Documentation will be updated soon. --Jani Previous Comments: --------------------------------------------------------------------------- [2001-06-27 22:50:46] sniper@php.net I really don't see the reason why the second parameter should be passed by reference anyway. Dan, fix this. :) --------------------------------------------------------------------------- [2001-06-27 10:24:21] charles@invis.net 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? --------------------------------------------------------------------------- [2001-06-27 10:10:48] kalowsky@php.net 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] sniper@php.net correct version. --------------------------------------------------------------------------- [2001-06-23 08:43:18] charles@invis.net 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. --------------------------------------------------------------------------- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11628&edit=2

« previous php.dev (#58333) next »