|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8759 xslt_process doesn't work at all
Submitted: 2001-01-17 09:08 UTC Modified: 2001-01-17 10:14 UTC
From: andre at promediasystems dot de Assigned:
Status: Closed Package: Sablotron XSL
PHP Version: 4.0.4pl1 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: andre at promediasystems dot de
New email:
PHP Version: OS:


 [2001-01-17 09:08 UTC] andre at promediasystems dot de
The example-script in the current php manual returns a strange error:

$xslData = ' ... a xsl stylesheet ...';
$xmlData = ' ... insert some xml data ...';
xslt_process($xslData, $xmlData, $result) or

PHP comes back with a 

Fatal error: msgtype: error in /home/shop/public_html/xml/test2.php on line xxx

xxx is the line containing the "xslt_process" command.

My configure line:

./configure --with-mysql=/usr --with-tiff-dir=/usr --with-jpeg-dir=/usr
--with-png-dir=/usr --with-imap=yes --with-xml --with-ttf --without-gd
--with-ftp --with-ndbm --with-snmp --with-gdbm --with-mm
--with-config-file-path=/etc/httpd --with-apxs=/usr/sbin/apxs
--with-exec-dir=/usr/lib/apache/bin --enable-versioning --enable-yp
--enable-trans-sid --enable-inline-optimization --enable-track-vars
--enable-magic-quotes --enable-safe-mode --enable-sysvsem --enable-sysvshm
--enable-bcmath --enable-calendar --enable-ftp --enable-memory-limit
--enable-wddx --with-readline i386-suse-linux-gnu --with-sablot
--enable-sablot-errors-descriptive --enable-sockets --with-dom=/usrl


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-17 09:11 UTC]
This indicates probably an error in your xsl stylesheet, but that errormessage is not correct and thus a bug. (I get that strange message for every error too)
 [2001-01-17 09:18 UTC]
And the error reporting mechanism was just fixed in CVS... ;)
 [2001-01-17 10:14 UTC] andre at promediasystems dot de
Oh man! I got the problem. This xslt funtion doesn't recognize the xml header!!!
Try it out. Place in the first line of your xsl/xml-buffer:
<?xml version="1.0"?>
an this strange "msgtype" error will appear...


Have a nice day :-)


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 22:01:33 2024 UTC