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 php.net. 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  https://wso2.org/repos/wso2/trunk/wsf/php.

svn co http://wso2.org/repos/wso2/trunk/wsf/php wsfphp

Now cd to wsfphp directory and open the configure.in 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

7 comments:

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

Result:
./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!


Nandika:

"If you are building form the svn source, you can just run the build.sh 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 build.sh 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...

米蘭情趣用品情趣用品情趣飛機杯自慰套充氣娃娃AV女優按摩棒跳蛋潤滑液角色扮演情趣內衣自慰器穿戴蝴蝶變頻跳蛋無線跳蛋電動按摩棒情趣按摩棒丁字褲G點SM後庭

視訊美女視訊做愛


網頁設計
網頁設計

alexey_baranov said...

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

Mike Bevz said...

Hi,

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