#33853 [Opn->Fbk]: php:function call __autoload with lowercase param
| From: | tony2001@php.net | Date: | Mon, 25 Jul 2005 18:34:18 +0000 |
| Subject: | #33853 [Opn->Fbk]: php:function call __autoload with lowercase param | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-82418@lists.php.net to get a copy of this message | ||
ID: 33853
Updated by: tony2001@php.net
Reported By: pasha dot zubkov at gmail dot com
-Status: Open
+Status: Feedback
-Bug Type: XSLT related
+Bug Type: Scripting Engine problem
Operating System: Linux 2.6.12.2
PHP Version: 5.0.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-07-25 20:27:23] 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"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33853&edit=1