mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00

This reimplements the parameter handling. Instead of quoting the strings manually, adding them to an array, and passing that as input; use the libxslt API to pass data verbatim to the processor. This also simplifies the code a lot. Closes GH-12331.
19 lines
419 B
PHP
19 lines
419 B
PHP
--TEST--
|
|
Check xsltprocessor::setparameter error handling with both single and double quotes
|
|
--DESCRIPTION--
|
|
Memleak: http://bugs.php.net/bug.php?id=48221
|
|
--EXTENSIONS--
|
|
xsl
|
|
--FILE--
|
|
<?php
|
|
include __DIR__ .'/prepare.inc';
|
|
$proc->importStylesheet($xsl);
|
|
$proc->setParameter('', '', '"\'');
|
|
$proc->transformToXml($dom);
|
|
?>
|
|
Done
|
|
--EXPECT--
|
|
Done
|
|
--CREDITS--
|
|
Christian Weiske, cweiske@php.net
|
|
PHP Testfest Berlin 2009-05-09
|