Building WSF/PHP with PHP 5.3.0

Tuesday, September 1, 2009

Since the release of PHP5.3.0 number of requests were there inquiring the compatibility of WSF/PHP with PHP 5.3.0.  I tried it out on windows and I only encountered minor issues. These issues are now fixed on the svn trunk. Here is how you can build WSF/PHP from the svn source to use with PHP 5.3.0.

First download both PHP 5.3.0 source and binary distributions from You will also need to download the binary tools such as bison.exe which are required to build the PHP source.

Next you need to run the buildconf.bat contained with the php source in order to build the windows specific headers.

Now you are ready to build wsf/php for php 5.3.0.

Get the svn source of wsf/php from

svn co wsfphp

Now cd to wsfphp directory and open the file and set php configurations as follows.

PHP_SRC_DIR = E:\php\php-5.3.0
PHP_BIN_DIR = E:\php\php-5.3.0-Win32
BINDLIB_DIR = E:\php\bindlib-cvs-vc8

Of course you need to set the other dependencies according to your machine configurations.

Now run the build.bat file. This will build wsf/php binary for php 5.3.0


pixelchutes said...
This comment has been removed by the author.
pixelchutes said...

Thanks for the write up, Nandika. However, I have not been having luck installing from SVN source on Unix...

The error is when I try to run "configure" the same way as I have for 2.0.0:

./configure --prefix=/usr/local/php/extensions/wsf_c --enable-shared

./configure: No such file or directory

Do you have a write up for a working Unix instance of WSF/PHP from SVN?

pixelchutes said...

Nandika, thank you for your post on WSO2 JIRA, it worked great!


"If you are building form the svn source, you can just run the file found in the topmost directory of the wsf/php checkout. Note they you need to have installed php-config which get installed when install php development libraries inorder for this to work.

Once the finished, do a make install. You will need root permissions for this since the binaries will be copied to your php-extensions directory location. "

inetsolution said...

Its highly informative. I would be visiting your blog hereafter regularly to gather valuable information.

joomla customisation development company india

J&D said...




alexey_baranov said...

Could you say approximately when will the new release, which will be compatible with PHP 5.3?

Mike Bevz said...


Could you please advice how should I build the extension for Zend Core (windows 7/64)?