From:             [EMAIL PROTECTED]
Operating system: Windows Vista
PHP version:      5.3.0alpha2
PHP Bug Type:     Compile Warning
Bug description:  Repeated compiler warnings (ZE + PHP)

Description:
------------
I've noticed that theres really many repeated compiler warnings especially
on Windows, so here goes:


Zend Engine:
HEAD: http://phpfi.com/360836
PHP_5_3: http://phpfi.com/360837

PHP:
In both HEAD and PHP_5_3 theres a repeated compiler warning C4142 (benign
redefinition of type):
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\Ws2tcpip.h(502) :
warning C4142: benign redefinition of type

I looked at Ws2tcpip.h, and it seems to be redefining socklen_t which is
in the Windows SDK, its only defined if _WIN32_WINNT is >= 6, so it must be
included before the generated config file (main/config.w32.h) where
_WIN32_WINNT is defined to 5. Also main/php.h seems to be defining
socklen_t ifndef HAVE_SOCKLEN_T, which im unsure if the Windows SDK has.


Note that these are not critical for actual running PHP, but it would be
great to have a cleaner screen on compile ;)


Resources (MSDN on compiler warnings):
C4090: http://msdn.microsoft.com/en-us/library/k77bkb8d.aspx
C4101: http://msdn.microsoft.com/en-us/library/c733d5h9.aspx
C4142: http://msdn.microsoft.com/en-us/library/cbs8z6wh.aspx


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

Reply via email to