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