bug48221.phpt 522 B

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