xref: /PHP-7.4/ext/xsl/tests/bug48221.phpt (revision a8209c51)
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--EXPECTF--
14Warning: XSLTProcessor::transformToXml(): Cannot create XPath expression (string contains both quote and double-quotes) in %s on line %d
15--CREDITS--
16Christian Weiske, cweiske@php.net
17PHP Testfest Berlin 2009-05-09
18