[PHP-DEV] PHP 4.0 Bug #5526 Updated: Openlink support bug in PHP4. From: kalowsky <email protected>
Date: 12/14/00

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

This was also a problem for the SOLID integration (mainly 2.3). I had corrected this in the php_odbc.c awhile back for cases of #ifdefined (HAVE_SOLID).

All initial reports back from SolidEE2.3 users claim this works wonderfully.

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

[2000-12-14 10:27:23] ahill <email protected>
This bug is still active in the 14 Dec 2000 snap.

Also, NOTE - the file that needs to have:

SQLINTEGER len; changed to
SDWORD len;

is not php_odbc.h but php_odbc.c

Best regards,
Andrew

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

[2000-11-23 18:16:11] sniper <email protected>
What's the situation with this bug ? Still valid? Zeev?

--Jani

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

[2000-09-15 04:05:33] ahill <email protected>
This is confirmed as still existing in 4.0.2

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

[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.

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

The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online.

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>