File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
XML Parser: mixing character encodings
3
3
--SKIPIF--
4
- <?php if (!extension_loaded ("xml " )) echo 'skip ' ; ?>
4
+ <?php
5
+ if (!extension_loaded ("xml " )) {
6
+ print 'skip - xml extension not available ' ;
7
+ }
8
+ if (!extension_loaded ('mbstring ' )) {
9
+ print 'skip - exif extension not available ' ;
10
+ }
11
+ ?>
5
12
--FILE--
6
13
<?php // -*- C++ -*-
7
14
//
@@ -47,7 +54,7 @@ $input = array(
47
54
"UTF-8 " => "<a>abcæøå</a> " ,
48
55
49
56
/* are these special chars allowed in ISO-8859-1 context??? */
50
- "ISO-8859-1 " => "<a>abcæøå </a> " , // "ISO-8859-1" => "<a>abc¥ <a>",
57
+ "ISO-8859-1 " => "<a>abc��� </a> " , // "ISO-8859-1" => "<a>abc� <a>",
51
58
52
59
"US-ASCII " => "<a>abcaoa</a> "
53
60
);
@@ -71,7 +78,7 @@ foreach ($input as $srcenc => $string) {
71
78
72
79
?>
73
80
--EXPECT--
74
- Testing UTF-8 -> ISO-8859-1: string(13) "<A>abcæøå </A>"
81
+ Testing UTF-8 -> ISO-8859-1: string(13) "<A>abc��� </A>"
75
82
Testing UTF-8 -> US-ASCII: string(13) "<A>abc???</A>"
76
83
Testing ISO-8859-1 -> UTF-8: string(16) "<A>abcæøå</A>"
77
84
Testing ISO-8859-1 -> US-ASCII: string(13) "<A>abc???</A>"
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ XML Parser: test for Bug #9328 "assigned by reference error in XML_RSS parse"
7
7
*/
8
8
$ originalErrorReporting = error_reporting ();
9
9
error_reporting (E_ALL & ~E_WARNING );
10
- if (' OK ' ! = (include_once 'XML/RSS.php ' )) {
11
- print ('skip if XML_RSS is not installed ' );
10
+ if (false = = (include_once 'XML/RSS.php ' )) {
11
+ print ('skip - XML_RSS is not installed ' );
12
12
}
13
13
error_reporting ($ originalErrorReporting );
14
14
?>
You can’t perform that action at this time.
0 commit comments