Porting New PHP Version Notes
-----------------------------

Required components: 

xdebug
zendoptimizer
zip
pspell

Required extensions:

xcache
imap
tnef
template - edit Makefile and add "TEMPLATE_SHARED_LIBADD=-lstdc++"
mailparse - compile and install php with --with-mbstring=all, copy ext/mbstring to ext/mailparse/ext, phpize


Windows only:

- openssl.dll   (Link with openssl shipped with php - so it does not collide with other openssl installed on the system)

                a) rename ssleay32.dll to phpssl32.dll, rename libeay32.dll to phpeay32.dll
                b) replace the name in the ssl files (openssl, ssleay32m phpeay32) to reflect the php* prefix (see above)

- php5ts.dll    (Disable registry php keys and environemnt - so it does not collide with other php installed on the system)

		a) replace "\Per Directory" with "\PHP Directory"
		b) replace "IniFilePath" with "PHPFilePath"
		c) replace "PHPRC" with "PHPEN"


Linux PHP 
---------
Fix php unix socket bug:

RCS file: /repository/php-src/sapi/cgi/cgi_main.c,v
retrieving revision 1.256
diff -u -r1.256 cgi_main.c
--- sapi/cgi/cgi_main.c 14 Jul 2004 22:30:27 -0000      1.256
+++ sapi/cgi/cgi_main.c 8 Aug 2004 14:53:57 -0000
@@ -1130,7 +1130,7 @@
                 * path (it's what the fastcgi library expects)
                 */

-               if (strchr(bindpath, ':') == NULL) {
+               if ((strchr(bindpath, ':') == NULL) && (strchr(bindpath, '/') == NULL)) {



Prepare IMAP libraries:

Download IMAP toolkit and place it under modules/imap-2004c1/ folder 
make lmd
cp c-client/*.c *.h lib
cp c-client/c-client.a lib/libc-client.a


Compile with:

--enable-fastcgi
--with-imap=./modules/imap-2004c1/
--enable-mbstring
--with-iconv
--with-openssl
--enable-calendar
--with-pcre-regex
--enable-cgi
--disable-cli
--disable-pear
--without-mysql
--with-pdo
--with-pdo-sqlite
--enable-static
--enable-bcmath
--enable-zip

strip php


For the libicewarpphp.so create the libphp5.so with:

--disable-all --enable-embed=shared --with-pcre-regex
