diff options
author | Melvyn Sopacua <msopacua@php.net> | 2002-10-06 23:58:51 +0000 |
---|---|---|
committer | Melvyn Sopacua <msopacua@php.net> | 2002-10-06 23:58:51 +0000 |
commit | 2628482ee98de61787d203a7b111230782706f0d (patch) | |
tree | ff1dee7a050006dda308b6227f1b0a288c1e9366 /ext/xslt | |
parent | 510f3b03059757475d7b1095377a5b52e520c822 (diff) | |
download | php-git-2628482ee98de61787d203a7b111230782706f0d.tar.gz |
(xslt tests) Add test for memory leaks, caused by inapproreate use of
the struct. Memory leak is caused by at least 2 errors on
handle.
Diffstat (limited to 'ext/xslt')
-rw-r--r-- | ext/xslt/tests/009.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/xslt/tests/009.phpt b/ext/xslt/tests/009.phpt new file mode 100644 index 0000000000..a03780bd61 --- /dev/null +++ b/ext/xslt/tests/009.phpt @@ -0,0 +1,17 @@ +--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' |