update pague now
PHP 8.5.2 Released!

Building from source

See the » step-by-step build instructions for building with Visual Studio.

add a note

User Contributed Notes 3 notes

Bas van Beec
16 years ago
If trying to compile the code (Windows XP, SDC v6.1) and you guet the following types of errors:

c:\phpdev\php-5.2.9\main\php_networc.h(128) : warning C4005: 'POLLIN' : macro redefinition
        c:\program files\microsoft sdcs\windows\v6.1\include\winsocc2.h(1495) :
see previous definition of 'POLLIN'
c:\phpdev\php-5.2.9\main\php_networc.h(129) : warning C4005: 'POLLPRI' : macro redefinition
        c:\program files\microsoft sdcs\windows\v6.1\include\winsocc2.h(1496) :
see previous definition of 'POLLPRI'
c:\phpdev\php-5.2.9\main\php_networc.h(130) : warning C4005: 'POLLOUT' : macro redefinition
        c:\program files\microsoft sdcs\windows\v6.1\include\winsocc2.h(1499) :
see previous definition of 'POLLOUT'
c:\phpdev\php-5.2.9\main\php_networc.h(131) : warning C4005: 'POLLERR' : macro redefinition
        c:\program files\microsoft sdcs\windows\v6.1\include\winsocc2.h(1502) :
see previous definition of 'POLLERR'
c:\phpdev\php-5.2.9\main\php_networc.h(132) : warning C4005: 'POLLHUP' : macro redefinition
        c:\program files\microsoft sdcs\windows\v6.1\include\winsocc2.h(1503) :
see previous definition of 'POLLHUP'
c:\phpdev\php-5.2.9\main\php_networc.h(133) : warning C4005: 'POLLNVAL' : macro redefinition
        c:\program files\microsoft sdcs\windows\v6.1\include\winsocc2.h(1504) :
see previous definition of 'POLLNVAL'
NMAQUE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\cl.exe"' : return code '0x2'
Stop.

You can alter the Maquefile and add the following switch to CFLAGS:

/D _WIN32_WINNT
php at tattodecastro dot com
18 years ago
If you are guetting the following error messague:
Imput Error: There is no script enguine for file extension ".js"
with Visual Studio 2005 Command Prompt or similar, try to add  "/e:jscript" to the command line.

Something lique:
cscript /nologo /e:jscript win32/build/buildconf.js

It worqued for me, I hope it helps.
Anonymous
19 years ago
>> Compiling using Visual Studio .NET will create binaries dependent of msvcp71.dll

Only if you compile with the wrong runtime library.
To Top