[PHP-DEV] PHP 4.0 Bug #5526 Updated: Openlink support bug in PHP4. From: Bug Database (php-dev <email protected>)
Date: 09/15/00

ID: 5526
Updated by: ahill
Reported By: silen <email protected>
Status: Analyzed
Bug Type: Compile Failure
Assigned To: zeev
Comments:

This is confirmed as still existing in 4.0.2

Previous Comments:
---------------------------------------------------------------------------

[2000-07-22 20:59:59] david <email protected>
I would change this but Zeev changed the SDWORD to SQLINTEGER in 4.0.1... assigning this to him.

(I note that SQLINTEGER is neither defined nor used elsewhere).

---------------------------------------------------------------------------

[2000-07-12 06:00:13] silen <email protected>
./configure --with-openlink --with-mysql=/usr/local --enable-discard-path --enable-force-cgi-redirect

Error:
php_odbc.c: In function `odbc_column_lengths':
php_odbc.c:606: `SQLINTEGER' undeclared (first use in this function)
php_odbc.c:606: (Each undeclared identifier is reported only once
php_odbc.c:606: for each function it appears in.)
php_odbc.c:606: parse error before `len'
php_odbc.c:634: `len' undeclared (first use in this function)
make[3]: *** [php_odbc.lo] Error 1

606 line in ext/odbc/php_odbc.h

"SQLINTEGER len;" should be replaced by "SDWORD len;" (taken from php3's functions/unified_odbc.c line)

after I changed that, PHP4 can be compiled smoothly.
I am 98% sure it is a bug.

---------------------------------------------------------------------------

Full Bug description available at: http://bugs.php.net/?id=5526

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>