|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-07-25 20:27 UTC] pasha dot zubkov at gmail dot com
Description:
------------
See example
Reproduce code:
---------------
<?php
function __autoload($className) {
var_dump($className);
exit();
}
$xsl = new DomDocument();
$xsl->loadXML('<?xml version="1.0" encoding="iso-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:php="http://php.net/xsl">
<xsl:template match="/">
<xsl:value-of select="php:function(\'TeSt::dateLang\')" />
</xsl:template>
</xsl:stylesheet>');
$inputdom = new DomDocument();
$inputdom->loadXML('<?xml version="1.0" encoding="iso-8859-1" ?>
<today></today>');
$proc = new XsltProcessor();
$proc->registerPhpFunctions();
$xsl = $proc->importStylesheet($xsl);
$newdom = $proc->transformToDoc($inputdom);
?>
Expected result:
----------------
string(4) "TeSt"
Actual result:
--------------
string(4) "test"
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 11:00:01 2025 UTC |
It seems to be related to XSLT indeed, as I can't reproduce it with 5.0.4/5.1-dev with this code: <?php function __autoload($className) { var_dump($className); exit(); } $test = new MyClass; ?>