Edit report at https://bugs.php.net/bug.php?id=60267&edit=1

 ID:                 60267
 Updated by:         [email protected]
 Reported by:        gnubug at billmann-edv dot net
 Summary:            Compile failure with freetds 0.91
 Status:             Open
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Linux
 PHP Version:        5.3.9RC1
 Block user comment: N
 Private report:     N

 New Comment:

I can't reproduce it.


Previous Comments:
------------------------------------------------------------------------
[2011-11-11 13:31:44] gnubug at billmann-edv dot net

Description:
------------
Trying to use PHP 5.3 (and 5.4) with the current FreeTDS 0.91 results in the 
following error message:

In file included from php-5.4.0RC1/ext/mssql/php_mssql.c:33:
php-5.4.0RC1/ext/mssql/php_mssql.h:69: error: redefinition of typedef 'LPBYTE'
include/sqlfront.h:35: note: previous declaration of 'LPBYTE' was here

It seems that FreeTDS expects PHP_MSSQL_API to be defined which isn't anymore 
as of PHP 5.3. Simply adding "#define PHP_MSSQL_API" to ext/mssql/php_mssql.h 
in line 24 solves this error...

I'm not sure whether this should be considered a PHP or FreeTDS problem...

Regards
Oliver



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



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60267&edit=1

Reply via email to