How to compile PHP x86 x64 DLL extension

I am trying to create some kind of nightly build environment that compiles both the x64 and x86 versions of the DLL extension for PHP.

I followed this tutorial on setting up the environment and building the extension, and it works great.

I currently have two virtual machines: one with x86 and one with x64 versions of Windows (XP and 7).

Is there a way to create both DLLs (32 and 64 bit) on the same virtual machine (I assume it will be Windows 7) using a batch file?

My goal is to set up a nightly β€œserver”, but also be able to build DLLs with a button.

Thanks for any pointers.

Machines that compile DLLs have Visual Studio 2008 Express and Windows SDK 6 (for x86) and 7 (for x64)

+7
source share
2 answers

In Visual Studio, in the project properties, you fill out the "Customize tab" tab. By clicking on the "Assembly" tab, you will see a drop-down list labeled "Platform." You can install it on x86 and try. If this fails, you can try with another option Any CPU ..

+1
source

There is a blog (not mine) where someone compiled x64 versions of older and newer versions of PHP, so you don't need to. It is here: http://www.anindya.com/

0
source

All Articles