c:\Users\Pierre\> set PATH=%PATH%;c:\Users\pierre\Documents\php-sdk\bin c:\Users\Pierre\> set BISON_SIMPLE=C:\Users\pierre\Documents\php-sdk\bin\bison.simple
The BISON_SIMPLE is important for the first time nmake is run. If this variable is not set (or if you don't have any /usr/local…), the following error will be raised:
bison.exe --output=Zend/zend_language_parser.c -v -d -p zend Zend/zend_language_parser.y C:\Users\pierre\Documents\php-sdk\bin\bison.exe: /usr/local/share/bison.simple: No such file or directory NMAKE : fatal error U1077: 'C:\Users\pierre\Documents\php-sdk\bin\bison.exe' : return code '0x2' Stop.
set PATH=C:\path where you extracted the binary tools\bin;%PATH% # also run the commands from the previous section buildconf configure nmake
Building with VS Express will not work as it will not find the WinResrc.h file.
I found that copying C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\WinResrc.h to winres.h allows PHP to build with VS Express.