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