ID: 49464 Comment by: raulsalitrero at gmail dot com Reported By: raulsalitrero at gmail dot com Status: Open Bug Type: Compile Failure Operating System: win32 only - Windows Xp SP3 PHP Version: 5.3SVN-2009-09-04 (SVN) New Comment:
i've just tried it, it works now. thanks. Previous Comments: ------------------------------------------------------------------------ [2009-09-04 10:26:14] ka...@php.net The fix for this is pretty simple: http://pastie.org/605649 However this C2491 only occurs when building sockets shared because of the wrong exporting declarings used ------------------------------------------------------------------------ [2009-09-04 03:44:59] raulsalitrero at gmail dot com Description: ------------ php_sockets.dll build is broken in win vc9, with the next error ext\sockets\sockets.c(327) : error C2491: 'php_sockets_le_socket' : definition of dllimport function not allowed tried building the last svn source with the same result. using vc9 to compile, the error is also observable in the windows sanpshots compile logs the bug was introduced in revision: 287911 - export le_socket from ext/sockets changing files: -/php/php-src/branches/PHP_5_3/ext/sockets/php_sockets.h -/php/php-src/branches/PHP_5_3/ext/sockets/sockets.c Reproduce code: --------------- use nmake to compile with vc9 compiler Expected result: ---------------- php_sockets.dll is built Actual result: -------------- php_sockets.dll is missing from the result build ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49464&edit=1