mirror of
https://github.com/php/php-src.git
synced 2024-10-14 04:52:33 +00:00
2628482ee9
the struct. Memory leak is caused by at least 2 errors on handle.
18 lines
572 B
PHP
18 lines
572 B
PHP
--TEST--
|
|
Memoryleak in error printing
|
|
--SKIPIF--
|
|
<?php include("skipif.inc"); ?>
|
|
--FILE--
|
|
<?php
|
|
error_reporting(E_ALL);
|
|
$xmlfile = 'ext/xslt/tests/non-existent.xml';
|
|
$xslfile = 'ext/xslt/tests/non-existent.xsl';
|
|
|
|
$xh = xslt_create();
|
|
$result = xslt_process($xh, $xmlfile, $xslfile, NULL);
|
|
xslt_free($xh);
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Sablotron error on line none: cannot open file '%s/ext/xslt/tests/non-existent.xsl' in %s/ext/xslt/tests/phpt.%s on line %i
|
|
%sext/xslt/tests/%s(%i) : Warning - Sablotron error on line none: cannot open file '%sext/xslt/tests/non-existent.xsl'
|