From:             pasha dot zubkov at gmail dot com
Operating system: Linux 2.6.12.2
PHP version:      5.0.4
PHP Bug Type:     XSLT related
Bug description:  php:function call __autoload with lowercase param

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 bug report at http://bugs.php.net/?id=33853&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33853&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33853&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33853&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33853&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33853&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33853&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33853&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33853&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33853&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33853&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33853&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33853&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33853&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33853&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33853&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33853&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33853&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33853&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33853&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33853&r=mysqlcfg

Reply via email to