PHP 4.0 Bug #7488 Updated: Pass-by-reference problem
| From: | kalowsky@php.net | Date: | Tue, 27 Mar 2001 15:49:48 +0000 |
| Subject: | PHP 4.0 Bug #7488 Updated: Pass-by-reference problem | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-50077@lists.php.net to get a copy of this message | ||
ID: 7488
Updated by: kalowsky
Reported By: torben@php.net
Old-Status: Open
Status: Feedback
Bug Type: ODBC related
Assigned To:
Comments:
is this still the case?
Previous Comments:
---------------------------------------------------------------------------
[2000-10-27 05:07:08] torben@php.net
When calling odbc_fetch_into() with three arguments, all works as
expected: the result array is passed by reference and results are
placed into it. But when using the two-parameter form, the result
array becomes the second parameter, which must be passed like this:
odbc_fetch_into($rid, &$arr);
in order to have the results placed into $arr. If the & is left out, $arr
is not modified. However, using & results in the large compile-time error
being printed at the beginning of script output unless it's been masked
out in php.ini, since forcing pass-by-ref this way is no longer supported.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=7488&edit=2