Skip to content

Commit 212e49b

Browse files
author
SVN Migration
committed
This commit was manufactured by cvs2svn to create branch 'unlabeled-1.1.2'.
1 parent 9eb5ddd commit 212e49b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

ext/xslt/tests/009.phpt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
--TEST--
2+
Memoryleak in error printing
3+
--SKIPIF--
4+
<?php include("skipif.inc"); ?>
5+
--FILE--
6+
<?php
7+
error_reporting(E_ALL);
8+
$xmlfile = 'ext/xslt/tests/non-existent.xml';
9+
$xslfile = 'ext/xslt/tests/non-existent.xsl';
10+
11+
$xh = xslt_create();
12+
$result = xslt_process($xh, $xmlfile, $xslfile, NULL);
13+
xslt_free($xh);
14+
?>
15+
--EXPECTF--
16+
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
17+
%sext/xslt/tests/%s(%i) : Warning - Sablotron error on line none: cannot open file '%sext/xslt/tests/non-existent.xsl'

0 commit comments

Comments
 (0)