1--TEST-- 2Check xsltprocessor::registerPHPFunctions with string and not allowed function 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('strpos')); 16try { 17 var_dump($proc->transformToXml($dom)); 18} catch (Throwable $e) { 19 echo $e->getMessage(), "\n"; 20} 21?> 22--EXPECT-- 23NULL 24No callback handler "ucwords" registered 25--CREDITS-- 26Christian Weiske, cweiske@php.net 27PHP Testfest Berlin 2009-05-09 28