]> granicus.if.org Git - php/commitdiff
Added Pi3Web support
authorHolger Zimmermann <holger@php.net>
Sat, 17 Jun 2000 12:06:09 +0000 (12:06 +0000)
committerHolger Zimmermann <holger@php.net>
Sat, 17 Jun 2000 12:06:09 +0000 (12:06 +0000)
sapi/pi3web/Makefile.in [new file with mode: 0644]
sapi/pi3web/README [new file with mode: 0644]
sapi/pi3web/config.m4 [new file with mode: 0644]
sapi/pi3web/php.sym [new file with mode: 0644]

diff --git a/sapi/pi3web/Makefile.in b/sapi/pi3web/Makefile.in
new file mode 100644 (file)
index 0000000..0195beb
--- /dev/null
@@ -0,0 +1,5 @@
+
+LTLIBRARY_NAME    = libsapi.la
+LTLIBRARY_SOURCES = pi3web_sapi.c
+
+include $(top_srcdir)/build/ltlib.mk
diff --git a/sapi/pi3web/README b/sapi/pi3web/README
new file mode 100644 (file)
index 0000000..8d7e9dc
--- /dev/null
@@ -0,0 +1,50 @@
+PHP4 Module
+==========
+This module requires PHP4 as thread safe shared library. Have a look
+into the INSTALL file which accompanies that distribution.
+
+If you distribute this software bundled with the PHP software in source
+or binary form, then you must adhere to the PHP copyright conditions -
+the terms are reasonable.
+
+You should have checked out and built the PHP4 source package from the
+PHP CVS tree into the Pi3Web source directory called 'PHP4' first. Then
+build PHP4 as Pi3Web module and after that build the Pi3Web PHP4 wrapper:
+
+1. Checkout PHP4
+================
+cvs -d :pserver:cvsread@cvs.php.net:/repository login
+The required password is phpfi
+
+cvs -z3 -d :pserver:cvsread@cvs.php.net:/repository co php4
+
+You must also checkout the TSRM and the ZEND module from the ZEND cvs tree
+into the PHP4 root directory
+
+cvs -d :pserver:cvsread@cvs.zend.com:/repository login
+The required password is zend
+
+cvs -z3 -d :pserver:cvsread@cvs.zend.com:/repository co Zend TSRM
+
+2. Build PHP4 
+=============
+2.1 POSIX
+---------
+cd ./php4
+./buildconf
+./configure --with-pi3web
+make
+
+2.2 Win32
+---------
+other required downloads from the php website
+  - bison 1.25
+  - bindlib32
+  - number4.tar.gz
+nmake php4dllts.mak
+
+3. Build Pi3Web PHP4 wrapper
+============================
+Run make in the Pi3Web /Source/PHP4 directory.
+
+For further information refer to http://www.php.net/version4/
diff --git a/sapi/pi3web/config.m4 b/sapi/pi3web/config.m4
new file mode 100644 (file)
index 0000000..7aaf715
--- /dev/null
@@ -0,0 +1,28 @@
+RESULT=no
+AC_MSG_CHECKING(for Pi3Web Support)
+AC_ARG_WITH(pi3web,
+[  --with-pi3web=DIR         Build PHP as an module for use with Pi3Web.],
+[
+       if test "$withval" = "yes"; then
+               PI3PATH=../.. # the default
+       else
+               PI3PATH=$withval
+       fi
+       pwd
+       test -f "$PI3PATH/PiAPI/PiAPI.h" || AC_MSG_ERROR(Unable to find PiAPI.h in $PI3PATH/PiAPI)
+       PHP_BUILD_THREAD_SAFE
+       AC_DEFINE(WITH_PI3WEB,1,[ ])
+       AC_ADD_INCLUDE($PI3PATH/PiAPI)
+       AC_ADD_INCLUDE($PI3PATH/Pi2API)
+       AC_ADD_INCLUDE($PI3PATH/Pi3API)
+       AC_ADD_INCLUDE($PI3PATH/PHP4)
+       PHP_SAPI=pi3web
+       PHP_BUILD_SHARED
+       INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $SAPI_SHARED $PI3PATH/bin/"
+       RESULT=yes
+])
+AC_MSG_RESULT($RESULT)
+
+dnl ## Local Variables:
+dnl ## tab-width: 4
+dnl ## End:
diff --git a/sapi/pi3web/php.sym b/sapi/pi3web/php.sym
new file mode 100644 (file)
index 0000000..e69de29