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