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