summaryrefslogtreecommitdiff
path: root/ext/xml
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-12-23 08:44:43 +0000
committerMarcus Boerger <helly@php.net>2005-12-23 08:44:43 +0000
commit35343ffaece4fe894977315871f539af98d33186 (patch)
treef4b7ef848ffff6447c46cc1ce395d92d73b14cd8 /ext/xml
parenta151e632d5c9c04772e57116e3a12519c0115e82 (diff)
downloadphp-git-35343ffaece4fe894977315871f539af98d33186.tar.gz
- MFH Do not test output escaping here
Diffstat (limited to 'ext/xml')
-rw-r--r--ext/xml/tests/xml001.phpt16
-rw-r--r--ext/xml/tests/xml002.phpt16
-rw-r--r--ext/xml/tests/xml003.phpt16
3 files changed, 24 insertions, 24 deletions
diff --git a/ext/xml/tests/xml001.phpt b/ext/xml/tests/xml001.phpt
index 6ee908e46d..62d597c5f8 100644
--- a/ext/xml/tests/xml001.phpt
+++ b/ext/xml/tests/xml001.phpt
@@ -35,42 +35,42 @@ xml_parser_free($xml_parser);
function startElement($parser, $name, $attribs)
{
- print "\{$name";
+ print '{'.$name;
if (sizeof($attribs)) {
while (list($k, $v) = each($attribs)) {
print " $k=\"$v\"";
}
}
- print "}";
+ print '}';
}
function endElement($parser, $name)
{
- print "\{/$name}";
+ print '{/'.$name.'}';
}
function characterData($parser, $data)
{
- print "\{CDATA[$data]}";
+ print '{CDATA['.$data.']}';
}
function PIHandler($parser, $target, $data)
{
- print "\{PI[$target,$data]}";
+ print '{PI['.$target.','.$data.']}';
}
function defaultHandler($parser, $data)
{
if (substr($data, 0, 1) == "&" && substr($data, -1, 1) == ";") {
- print "\{ENTREF[$data]}";
+ print '{ENTREF['.$data.']}';
} else {
- print "\{?[$data]}";
+ print '{?['.$data.']}';
}
}
function externalEntityRefHandler($parser, $openEntityNames, $base, $systemId, $publicId)
{
- print "\{EXTENTREF[$openEntityNames,$base,$systemId,$publicId]}\n";
+ print '{EXTENTREF['.$openEntityNames.','.$base.','.$systemId.','.$publicId."]}\n";
return true;
}
diff --git a/ext/xml/tests/xml002.phpt b/ext/xml/tests/xml002.phpt
index 9785002926..8ae8dfbe66 100644
--- a/ext/xml/tests/xml002.phpt
+++ b/ext/xml/tests/xml002.phpt
@@ -15,37 +15,37 @@ class myclass
{
function startElement($parser, $name, $attribs)
{
- print "\{$name";
+ print '{'.$name;
if (sizeof($attribs)) {
while (list($k, $v) = each($attribs)) {
print " $k=\"$v\"";
}
}
- print "}";
+ print '}';
}
function endElement($parser, $name)
{
- print "\{/$name}";
+ print '{/'.$name.'}';
}
function characterData($parser, $data)
{
- print "\{CDATA[$data]}";
+ print '{CDATA['.$data.']}';
}
function PIHandler($parser, $target, $data)
{
- print "\{PI[$target,$data]}";
+ print '{PI['.$target.','.$data.']}';
}
function defaultHandler($parser, $data)
{
if (substr($data, 0, 1) == "&" && substr($data, -1, 1) == ";") {
- print "\{ENTREF[$data]}";
+ print '{ENTREF['.$data.']}';
} else {
- print "\{?[$data]}";
+ print '{?['.$data.']}';
}
}
function externalEntityRefHandler($parser, $openEntityNames, $base, $systemId, $publicId)
{
- print "\{EXTENTREF[$openEntityNames,$base,$systemId,$publicId]}\n";
+ print '{EXTENTREF['.$openEntityNames.','.$base.','.$systemId.','.$publicId."]}\n";
return true;
}
}
diff --git a/ext/xml/tests/xml003.phpt b/ext/xml/tests/xml003.phpt
index fa0984e893..311c81acfb 100644
--- a/ext/xml/tests/xml003.phpt
+++ b/ext/xml/tests/xml003.phpt
@@ -15,37 +15,37 @@ class myclass
{
function startElement($parser, $name, $attribs)
{
- print "\{$name";
+ print '{'.$name;
if (sizeof($attribs)) {
while (list($k, $v) = each($attribs)) {
print " $k=\"$v\"";
}
}
- print "}";
+ print '}';
}
function endElement($parser, $name)
{
- print "\{/$name}";
+ print '{/'.$name.'}';
}
function characterData($parser, $data)
{
- print "\{CDATA[$data]}";
+ print '{CDATA['.$data.']}';
}
function PIHandler($parser, $target, $data)
{
- print "\{PI[$target,$data]}";
+ print '{PI['.$target.','.$data.']}';
}
function defaultHandler($parser, $data)
{
if (substr($data, 0, 1) == "&" && substr($data, -1, 1) == ";") {
- print "\{ENTREF[$data]}";
+ print '{ENTREF['.$data.']}';
} else {
- print "\{?[$data]}";
+ print '{?['.$data.']}';
}
}
function externalEntityRefHandler($parser, $openEntityNames, $base, $systemId, $publicId)
{
- print "\{EXTENTREF[$openEntityNames,$base,$systemId,$publicId]}\n";
+ print '{EXTENTREF['.$openEntityNames.','.$base.','.$systemId.','.$publicId."]}\n";
return true;
}
}