1--TEST--
2Check xsltprocessor::setparameter error handling with no-string
3--DESCRIPTION--
4Memleak: http://bugs.php.net/bug.php?id=48221
5--SKIPIF--
6<?php
7if (!extension_loaded('xsl')) {
8    die("skip\n");
9}
10?>
11--FILE--
12<?php
13include __DIR__ .'/prepare.inc';
14$proc->importStylesheet($xsl);
15try {
16    $proc->setParameter('', array(4, 'abc'));
17} catch (TypeError $exception) {
18    echo $exception->getMessage() . "\n";
19}
20$proc->transformToXml($dom);
21?>
22--EXPECT--
23XSLTProcessor::setParameter(): Argument #2 ($name) must contain only string keys
24--CREDITS--
25Christian Weiske, cweiske@php.net
26PHP Testfest Berlin 2009-05-09
27