bug33853.phpt 814 B

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