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'));
16var_dump($proc->transformToXml($dom));
17?>
18--EXPECTF--
19NULL
20
21Warning: XSLTProcessor::transformToXml(): Not allowed to call handler 'ucwords()' in %s on line %d
22NULL
23--CREDITS--
24Christian Weiske, cweiske@php.net
25PHP Testfest Berlin 2009-05-09
26