lack of XSLT support in php 5.2.1

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

i got a problem with my hosting provider and the system admin seems
not to be a top class specialist...
I'm not one myself though.

The problem is related to XSLT support in php.
phpinfo() returns:
PHP Version 5.2.1
'./configure' '--enable-pic' '--with-apxs=/usr/local/apache/bin/apxs'
'--with-libdir=lib64' '--prefix=/usr/local' '--with-xml'
'--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom'
'--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--enable-ftp'
'--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr'
'--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-iconv'
'--with-imap=/usr/local/imap-2004g' '--enable-mbstring'
'--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt'
'--with-mhash' '--enable-magic-quotes' '--with-mysqli'
'--with-mysql=/usr' '--with-openssl' '--enable-discard-path'
'--with-pear' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets'
'--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr'
'--enable-gd-native-ttf' '--with-xmlrpc' '--with-zlib'

Now, the interesting parts are:
'--with-dom-xslt' '--enable-xslt' '--with-xslt-sablot'

Those would suggest that php was in fact compiled with support for xslt
in 3 different ways. In fact, non of those are acctualy avaiable in php.
Using any of them produces fatel error. DomDocument seems to be there,
but domxlm_xslt* functions are not.  xslt_create is not avaiable nor is
XSLTProcessor class.

Anyone cold give me a hint what is going on ?

Server is ofc in safe mode, but the admin says that no classes or
functions are being disabled.

Also, in further phpinfo output i cant find anything related to xlst (as
i can on my dev box)

Best regards

Re: lack of XSLT support in php 5.2.1

Piotr ha scritto:
Quoted text here. Click to load it
If you look at the doc, you'll see that DOM XML and XSLT extensions are  
for PHP 4 only. Their corresponding extensions in PHP 5 are DOM (which  
is normally built-in and lacks XSLT support) and XSL. There also seem to  
be some useful wrappers for PHP 4 domxml and xslt script to use them  
under PHP5:

(I didn't try these)

|\/|55: Mattia Gentilini e 55 motivi per il suo nick (by panda)
|/_| ETICS project at CNAF, INFN, Bologna, Italy
* Using Mac OS X 10.4.9 powered by Cerebros (Core 2 Duo) *

Re: lack of XSLT support in php 5.2.1

Mattia Gentilini napisaƂ(a):

Quoted text here. Click to load it

I know that mentioned extensions are ment for php 4. Now they are in
PECL, and still can be compiled in - as they are in this case.

All in all, it seems that the admin did 'not such a great job' with
configuration of the php as he compiled it with options ment for php4.

Thank you for Your interest.
Best regards

Site Timeline