1--TEST-- 2Bug #33853 (php:function call __autoload with lowercase param) 3--SKIPIF-- 4<?php 5if (!extension_loaded('xsl')) die('skip xsl not loaded'); 6?> 7--FILE-- 8<?php 9 10spl_autoload_register(function ($className) { 11 var_dump($className); 12 exit(); 13}); 14 15$xsl = new DomDocument(); 16$xsl->loadXML('<?xml version="1.0" encoding="iso-8859-1" ?> 17<xsl:stylesheet version="1.0" 18xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 19xmlns:php="http://php.net/xsl"> 20<xsl:template match="/"> 21<xsl:value-of select="php:function(\'TeSt::dateLang\')" /> 22</xsl:template> 23</xsl:stylesheet>'); 24$inputdom = new DomDocument(); 25$inputdom->loadXML('<?xml version="1.0" encoding="iso-8859-1" ?> 26<today></today>'); 27 28$proc = new XsltProcessor(); 29$proc->registerPhpFunctions(); 30$xsl = $proc->importStylesheet($xsl); 31$newdom = $proc->transformToDoc($inputdom); 32?> 33===DONE=== 34--EXPECT-- 35string(4) "TeSt" 36