xref: /PHP-8.0/ext/xsl/tests/bug48221.phpt (revision 7aacc705)
1--TEST--
2Bug #48221 (memory leak when passing invalid xslt parameter)
3--SKIPIF--
4<?php
5if (!extension_loaded('xsl')) die("skip Extension XSL is required\n");
6?>
7--FILE--
8<?php
9include('prepare.inc');
10$proc->importStylesheet($xsl);
11$proc->setParameter('', '', '"\'');
12$proc->transformToXml($dom);
13?>
14--EXPECTF--
15Warning: XSLTProcessor::transformToXml(): Cannot create XPath expression (string contains both quote and double-quotes) in %s on line %d
16--CREDITS--
17Christian Weiske, cweiske@php.net
18PHP Testfest Berlin 2009-05-09
19