PHP 4.0 Bug #7488: Pass-by-reference problem
| From: | torben@php.net | Date: | Fri, 27 Oct 2000 09:07:08 +0000 |
| Subject: | PHP 4.0 Bug #7488: Pass-by-reference problem | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-36104@lists.php.net to get a copy of this message | ||
From: torben@php.net
Operating system: Mandrake 7.0
PHP version: 4.0 Latest CVS (27/10/2000)
PHP Bug Type: ODBC related
Bug description: Pass-by-reference problem
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.
--
Edit Bug report at: http://bugs.php.net/?id=7488&edit=1