From:             Keisial at gmail dot com
Operating system: Windows - VC6
PHP version:      5.3CVS-2008-08-03 (snap)
PHP Bug Type:     Compile Failure
Bug description:  Doesn't compile with VC6 - Include problem

Description:
------------
5.3 doesn't compile with VC6. When including winsock2.h at
zend_config.w32.h it includes windows.h which in turn includes winsock
stuff before a SOCKET is defined. Compilation fails with error on
mswsock.h
(This doesn't happen including only those two headers, so some defines are
modifying the defualt behaviour)

Changing the order to include windows.h before winsock2.h fixes it:
--- zend_config.w32.h   2008-07-17 20:33:46.000000000 +0200
+++ zend_config.w32.h   2008-08-03 14:19:56.593750000 +0200
@@ -35,8 +35,8 @@
 #ifndef ZEND_INCLUDE_FULL_WINDOWS_HEADERS
 #define WIN32_LEAN_AND_MEAN
 #endif
-#include <winsock2.h>
 #include <windows.h>
+#include <winsock2.h>

 #include <float.h>


-- 
Edit bug report at http://bugs.php.net/?id=45698&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45698&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45698&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45698&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45698&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45698&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45698&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45698&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45698&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45698&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45698&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45698&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45698&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45698&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45698&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45698&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45698&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45698&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45698&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45698&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45698&r=mysqlcfg

Reply via email to