ID:               15942
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         XSLT related
 Operating System: Linux
 PHP Version:      HEAD
 New Comment:

Here is some information to help the developers understand this bug.

<?php
if (!function_exists('xmldoc')) {
    dl('domxml.so');
}
/** Test run of libxslt php functions **/
$xsl = '<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

  <xsl:template match="/">
    <xsl:copy-of select="*"/>
  </xsl:template>
</xsl:stylesheet>';
$xml = '<doc><node/></doc>';
$xmlObj = xmldoc($xml);
$xslObj = domxml_xslt_stylesheet($xsl);
$output = $xslObj->process($xmlObj,array());
echo $output->dump_mem();

/** Error I receive:
<br>
<b>Warning</b>:  Unable to load dynamic library
'/usr/lib/php4/domxml.so' - /usr/lib/php4/domxml.so: undefined symbol:
xsltGenericErrorContext in <b>/home/dallen/testing/xsl/sample.php</b>
on line <b>2</b><br>

xsltproc -V
Using libxml 20416, libxslt 10012 and libexslt 704
xsltproc was compiled against libxml 20416, libxslt 10012 and libexslt
704
libxslt 10012 was compiled against libxml 20415libexslt 704 was
compiled against libxml 20415
**/
?>


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

[2002-03-08 13:58:21] [EMAIL PROTECTED]

When did you update the libxslt stuff?  I've just modified the
configure script for domxml.  Please get the latest CVS version and
retry.  The fix I did may have fixed the problem.

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

[2002-03-07 16:31:50] [EMAIL PROTECTED]

Important to note here that all the other domxml functions worked, it
was just the xslt functions that had trouble.  Of course when the
module couldn't load, nothing worked.

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

[2002-03-07 16:30:50] [EMAIL PROTECTED]

php: relocation error: /usr/lib/php4/domxml.so: undefined symbol:
xsltParseStylesheet*

I downloaded the snapshot and did the following

./configure --with-dom=shared --with-dom-xslt --with-dom-exslt

(I had libxslt and libxslt-devel 1.0.12 and the corresponding libxml2)

Then I copied the domxml.so to my extensions and tried to use one of
the domxml_xslt_stylesheet_* functions and received the above error.  I
had previously build the module just after the libxslt functions were
added (around CVS version 1.102) and it worked fine.  

In addition to this error, the following lines from the C file cause
the module not to load when left in the source code.

Line 1236:

xmlSetGenericErrorFunc(xmlGenericErrorContext,
(xmlGenericErrorFunc)domxml_error);
if HAVE_DOMXSLT
    xsltSetGenericErrorFunc(xsltGenericErrorContext,
(xmlGenericErrorFunc)domxml_error);



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


-- 
Edit this bug report at http://bugs.php.net/?id=15942&edit=1

Reply via email to