1--TEST-- 2Check xsltprocessor::registerPHPFunctions with string 3--EXTENSIONS-- 4xsl 5--FILE-- 6<?php 7include __DIR__ .'/prepare.inc'; 8$phpfuncxsl = new domDocument(); 9$phpfuncxsl->load(__DIR__."/phpfunc.xsl"); 10if(!$phpfuncxsl) { 11 echo "Error while parsing the xsl document\n"; 12 exit; 13} 14$proc->importStylesheet($phpfuncxsl); 15var_dump($proc->registerPHPFunctions('ucwords')); 16var_dump($proc->transformToXml($dom)); 17?> 18--EXPECT-- 19NULL 20string(18) "This Is An Example" 21--CREDITS-- 22Christian Weiske, cweiske@php.net 23PHP Testfest Berlin 2009-05-09 24