From 8c95cefac6db0ec18002e9c46b55895c584c8c07 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Tue, 29 Oct 2002 21:57:51 +0000 Subject: -add reason to --SKIPIF-- -add magic_quotes_runtime to --INI-- --use var_dump() --- ext/xslt/tests/xslt_process-001.phpt | 4 +++- ext/xslt/tests/xslt_set_object.phpt | 4 +++- ext/xslt/tests/xslt_setopt.phpt | 41 ++++++++++++++++++++++++------------ 3 files changed, 33 insertions(+), 16 deletions(-) (limited to 'ext') diff --git a/ext/xslt/tests/xslt_process-001.phpt b/ext/xslt/tests/xslt_process-001.phpt index 935c7c273d..15f9cae262 100644 --- a/ext/xslt/tests/xslt_process-001.phpt +++ b/ext/xslt/tests/xslt_process-001.phpt @@ -4,9 +4,11 @@ Various ways to provide xml and xslt arguments and params +--INI-- +magic_quotes_runtime=0 --FILE-- +--INI-- +magic_quotes_runtime=0 --FILE-- +--INI-- +magic_quotes_runtime=0 --FILE-- ', 'foo< // DEBUG: print $xslstring; xslt_setopt($xh, XSLT_SABOPT_PARSE_PUBLIC_ENTITIES | XSLT_SABOPT_DISABLE_ADDING_META); -$result_nometa = xslt_process($xh, $xmlfile, 'arg:/_xsl', NULL, array('/_xsl' => $xslstring)); -// DEBUG: print "$result_nometa\n"; +var_dump(xslt_process($xh, $xmlfile, 'arg:/_xsl', NULL, array('/_xsl' => $xslstring))); + xslt_setopt($xh, XSLT_SABOPT_PARSE_PUBLIC_ENTITIES); -$result_meta = xslt_process($xh, $xmlfile, 'arg:/_xsl', NULL, array('/_xsl' => $xslstring)); +var_dump(xslt_process($xh, $xmlfile, 'arg:/_xsl', NULL, array('/_xsl' => $xslstring))); // DEBUG: print "$result_meta\n"; -/* Also test if they're equal. That would mean, that disable-adding-meta is set to off - at compile time and our call to xslt_setopt failed to reset that */ -if($result_meta != $result_nometa && FALSE === stristr($result_nometa, '<meta http-equiv="Content-Type"')) -{ - print "OK\n"; -} - xslt_free($xh); ?> --EXPECT-- PHP QA® -OK +string(95) "<html> + <head> + <title>foo + + +

PHP QA®

+ + +" +string(172) " + + + foo + + +

PHP QA®

+ + +" \ No newline at end of file -- cgit v1.2.1