summaryrefslogtreecommitdiff
path: root/ext/xml/tests/xml002.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/xml/tests/xml002.phpt')
-rw-r--r--ext/xml/tests/xml002.phpt16
1 files changed, 8 insertions, 8 deletions
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;
}
}