1--TEST--
2Check xsltprocessor::registerPHPFunctions with array called multiple times
3--DESCRIPTION--
4When being called multiple times with an array,
5registerPHPFunctions adds the new functions to the allowed parameter
6list - it does not replace the previously allowed functions.
7--EXTENSIONS--
8xsl
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(array('strpos', 'ucwords')));
20var_dump($proc->registerPHPFunctions(array('strrev', 'array_key_exists')));
21var_dump($proc->registerPHPFunctions(array()));
22var_dump($proc->transformToXml($dom));
23?>
24--EXPECT--
25NULL
26NULL
27NULL
28string(18) "This Is An Example"
29--CREDITS--
30Christian Weiske, cweiske@php.net
31PHP Testfest Berlin 2009-05-09
32