note 10252 added to DOM XML functions
| From: | Greg at dyrectmedia dot com | Date: | Wed, 20 Dec 2000 21:10:01 +0000 |
| Subject: | note 10252 added to DOM XML functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8979@lists.php.net to get a copy of this message | ||
If you installed php4.0.3, you have to hack the files a bit in order to get this to work right.
I am included my install procedure NOTE: I also install sablotron, and several other packages...
(thanks to chek.com for the help).
1. Apply patch to fix sablot
--- php-4.0.3pl1/ext/sablot/config.m4.orig Wed Dec 20 08:48:56 2000
+++ php-4.0.3pl1/ext/sablot/config.m4 Wed Dec 20 08:11:27 2000
@@ -27,5 +27,6 @@
PHP_SUBST(SABLOT_SHARED_LIBADD) AC_ADD_LIBRARY_WITH_PATH(sablot, $SABLOT_DIR/lib, \
SABLOT_SHARED_LIBADD)
-
+ AC_ADD_LIBRARY(xmltok)
+ AC_ADD_LIBRARY(xmlparse)
AC_DEFINE(HAVE_SABLOT,1,[ ])
2. Run buildconf
3. Run ./configure
./configure --with-mysql=/usr/local/mysql \
--with-apxs=/usr/local/apache/bin/apxs --with-sablot=/usr/local \
--with-dom=/usr/local/lib/libxml --with-xml --enable-calender --with-gd \
--with-pdflib=/home/chris/tmp/pdflib-3.02/pdflib --enable-track-vars \
--with-zlib-dir=/usr --with-ttf=/usr/local/include --with-jpeg-dir=/usr \
--with-tiff-dir=/usr --with-fdftk=/usr/lib/C --enable-ftp \
--with-openssl=/usr/local/ssl --with-swf=/usr/local/swf \
--enable-sablot-errors-descriptive --enable-wddx 2>&1 | tee \
configure.out
4. Apply patch to fix zend_extensions
--- php-4.0.3pl1/Zend/zend_extensions.c.orig Wed Dec 20 08:29:47 2000
+++ php-4.0.3pl1/Zend/zend_extensions.c Wed Dec 20 08:30:25 2000
@@ -142,4 +142,5 @@
static void zend_extension_startup(zend_extension *extension)
{
+#if ZEND_EXTENSIONS_SUPPORT
if (extension->startup) {
if (extension->startup(extension)!=SUCCESS) {
@@ -147,4 +148,5 @@
}
}
+#endif
}
5. Make
6. Make install
http://www.php.net/manual/ref.domxml.php