1--TEST-- 2Check xsltprocessor::registerPHPFunctions with string called multiple times 3--DESCRIPTION-- 4When being called multiple times with a stringular function name only, 5registerPHPFunctions adds the new function to the allowed parameter 6list - it does not replace the old function. 7--SKIPIF-- 8<?php 9 if (!extension_loaded('xsl')) { 10 die("skip\n"); 11 } 12?> 13--FILE-- 14<?php 15include __DIR__ .'/prepare.inc'; 16$phpfuncxsl = new domDocument(); 17$phpfuncxsl->load(__DIR__."/phpfunc.xsl"); 18if(!$phpfuncxsl) { 19 echo "Error while parsing the xsl document\n"; 20 exit; 21} 22$proc->importStylesheet($phpfuncxsl); 23var_dump($proc->registerPHPFunctions('ucwords')); 24var_dump($proc->registerPHPFunctions('strpos')); 25var_dump($proc->transformToXml($dom)); 26?> 27--EXPECT-- 28NULL 29NULL 30string(18) "This Is An Example" 31--CREDITS-- 32Christian Weiske, cweiske@php.net 33PHP Testfest Berlin 2009-05-09 34