php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46876 PHP XSLT Module Error
Submitted: 2008-12-15 23:51 UTC Modified: 2008-12-16 01:34 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: 6r4845 at gmail dot com Assigned:
Status: Not a bug Package: XSLT related
PHP Version: 5.2.8 OS: Windows
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: 6r4845 at gmail dot com
New email:
PHP Version: OS:

 

 [2008-12-15 23:51 UTC] 6r4845 at gmail dot com
Description:
------------
Hi, i was enabled xsl module, restarted my server but li am still getting error "Call to undefined function xsl_create()" when i'm trying to proccess xml & xsl file with code:

<?php
  $xh = xsl_create();
  $result = xsl_process($xh, 'users.xml', 'users.xsl');
?>

What the fuck? :(




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-16 00:11 UTC] 6r4845 at gmail dot com
More info

I recently installed wampserver which packages php5, phpmyadmin and apache. All seems to work fine except when I try to use XSL functions such as xslt_create() I receive the following error: 

Fatal error: Call to undefined function xslt_create() 

I've uncommented the xsl extension : extension=php_xsl.dll 

phpinfo states the following : 

XSL enabled 
libxslt Version 1.1.7 
libxslt compiled against libxml Version 2.6.11 
EXSLT enabled 
libexslt Version 0.8.5 

So, I believe XSL is enabled but the functionality doesn't seem to be available to me, does anyone have any idea how I can resolve this?
 [2008-12-16 00:18 UTC] 6r4845 at gmail dot com
Even http://lt2.php.net/manual/en/function.xsl-xsltprocessor-transform-to-xml.php doesnt work, what the fucking hell damn
 [2008-12-16 01:34 UTC] scottmac@php.net
Use
$xsl = new XSLTProcessor();

xsl_create is from the PHP 4 module.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 08 12:01:28 2024 UTC