Bug #4330: FUNCTION ODBC_FETCH_INTO RETURNS ALL NULLS
| From: | GORDONL at TTS-SF dot COM | Date: | Thu, 04 May 2000 19:40:50 +0000 |
| Subject: | Bug #4330: FUNCTION ODBC_FETCH_INTO RETURNS ALL NULLS | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18432@lists.php.net to get a copy of this message | ||
From: GORDONL@TTS-SF.COM
Operating system: Mandrake Linux 7.0
PHP version: 3.0.16
PHP Bug Type: ODBC related
Bug description: FUNCTION ODBC_FETCH_INTO RETURNS ALL NULLS
Working with Informix drivers and database, when we run with this function, we get nothing. The
error return is null and the return array is null. Transforming the code to use the odbc_fetch_row
function makes it work.
Our configure line was (approximately):
./configure --with-apache=/opt/apache --with-custom_odbc=/opt/informix --with-informix=/opt/informix
--with-php=/opt/php
To get the whole build process to complete successfully we had to make a couple of changes:
In function.c, we had to cut out a segment of code that referred to memory leak in Informix Client
(version <= 7.20) because the '#if' statement was written incorrectly. In the library
include process, we had to alter the library list to include some native Informix Client libraries.
Also, several of the Informix ifx functions (ifx_prepare, ifx_query, ifx_do) exhibit the same
behavior(return nothing but nulls). This makes the informix functions essentially worthless to us.