[PHP-DEV] PHP 4.0 Bug #8483 Updated: xslt_run results in Fatal error: msgtype: From: anders <email protected>
Date: 01/03/01

ID: 8483
User Update by: anders <email protected>
Old-Status: Open
Status: Closed
Bug Type: Sablotron XSL
Description: xslt_run results in Fatal error: msgtype:

Just found the answer to my problem in a reply to bug id #8385.

When I insert the suggested code, to print out the error messages I found an embarrassing error in the XSL code.

<?php
$parser = xslt_create();

function xsl_error($parser, $code, $level, $errors)
   {
   echo "$parser [$code]: $level, ";
   var_dump($errors);
   }
xslt_set_error_handler($parser, "xsl_error");

xslt_run($parser,"simple.xsl","simple.xml");
print xslt_fetch_result($parser);
xslt_free($parser);
?>

Previous Comments:
---------------------------------------------------------------------------

[2000-12-29 13:40:23] anders <email protected>
I have the following php-script:

<?php
$parser = xslt_create();
xslt_run($parser,"simple.xsl","simple.xml");
print xslt_fetch_result($parser);
xslt_free($parser);
?>

When I run the script I get the following error message:
" Fatal error: msgtype: error in c:htdocsxmltest.php on line 3 "

My configuration is as follows:

WIndows-NT4, SP6
Apache/1.3.14
PHP4.0.4
Sablotron 050
expat 1.95.1

I have also put the result from phpinfo() and my php.ini file on http://www.isazone.com/phpbug/

/Anders Isaksson
anders <email protected>

---------------------------------------------------------------------------

Full Bug description available at: http://bugs.php.net/?id=8483

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>