[PHP-DEV] My final say on Empress RBDMS and PHP From: Steve Williams (swilliam <email protected>)
Date: 12/11/98

I have completed my updates for Empress RDBMS in PHP.

There is one outstanding issue that should be addressed, but I am not
confident enough to make the change - someone with a sounder knowledge
of the unified_odbc.c file should look at it.

Binary images are displayed when odbc_result_all is called. This is
because binmode is set to 1, and this allows the data through...

The code: line 1579 -

case SQL_LONGVARBINARY:
        if (result->binmode <= 0){
                php3_printf("<td>Not printable</td>");
                break;
        }
if (result->binmode <= 1) sql_c_type = SQL_C_BINARY;

I THINK that the data should NEVER be displayed in a HTML table,
therefore the code should be:

case SQL_LONGVARBINARY:
        php3_printf("<td>Not printable</td>");
        break;

But I'm not sure.

        Steve

-- 
Steve Williams                 Interactive Media & Tools Group
Empress Software Inc.          http://www.empress.com

-- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe <email protected> For help: php-dev-help <email protected>