From:             
Operating system: Linux
PHP version:      5.3.9RC1
Package:          Compile Failure
Bug Type:         Bug
Bug description:Compile failure with freetds 0.91

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 bug report at https://bugs.php.net/bug.php?id=60267&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=60267&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=60267&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=60267&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=60267&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60267&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=60267&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=60267&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=60267&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=60267&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=60267&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=60267&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=60267&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=60267&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=60267&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=60267&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60267&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=60267&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=60267&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=60267&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=60267&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=60267&r=mysqlcfg

Reply via email to