1--TEST--
2Check xsltprocessor::registerPHPFunctions with string and not allowed function
3--SKIPIF--
4<?php
5        if (!extension_loaded('xsl')) {
6                die("skip\n");
7        }
8?>
9--FILE--
10<?php
11include __DIR__ .'/prepare.inc';
12$phpfuncxsl = new domDocument();
13$phpfuncxsl->load(__DIR__."/phpfunc.xsl");
14if(!$phpfuncxsl) {
15  echo "Error while parsing the xsl document\n";
16  exit;
17}
18$proc->importStylesheet($phpfuncxsl);
19var_dump($proc->registerPHPFunctions('strpos'));
20var_dump($proc->transformToXml($dom));
21?>
22--EXPECTF--
23NULL
24
25Warning: XSLTProcessor::transformToXml(): Not allowed to call handler 'ucwords()' in %s on line %d
26NULL
27--CREDITS--
28Christian Weiske, cweiske@php.net
29PHP Testfest Berlin 2009-05-09
30