We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eb5ddd commit 212e49bCopy full SHA for 212e49b
ext/xslt/tests/009.phpt
@@ -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