|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33853 php:function call __autoload with lowercase param
Submitted: 2005-07-25 20:27 UTC Modified: 2005-07-25 23:08 UTC
From: pasha dot zubkov at gmail dot com Assigned: helly
Status: Closed Package: XSLT related
PHP Version: 5.0.4 OS: *
Private report: No CVE-ID:
 [2005-07-25 20:27 UTC] pasha dot zubkov at gmail dot com
See example

Reproduce code:

function __autoload($className) {

$xsl = new DomDocument();
$xsl->loadXML('<?xml version="1.0" encoding="iso-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="" xmlns:php="">
<xsl:template match="/">
<xsl:value-of select="php:function(\'TeSt::dateLang\')" />
$inputdom = new DomDocument();
$inputdom->loadXML('<?xml version="1.0" encoding="iso-8859-1" ?>

$proc = new XsltProcessor();
$xsl = $proc->importStylesheet($xsl);
$newdom = $proc->transformToDoc($inputdom);

Expected result:
string(4) "TeSt"

Actual result:
string(4) "test"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-25 20:34 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-07-25 20:45 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:
function __autoload($className) {
$test = new MyClass;
 [2005-07-25 23:08 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 19:01:29 2015 UTC