diff options
Diffstat (limited to 'ext/xsl/tests/xslt004.phpt')
| -rw-r--r-- | ext/xsl/tests/xslt004.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/xsl/tests/xslt004.phpt b/ext/xsl/tests/xslt004.phpt index 6c4da2d0ef..6e8f476018 100644 --- a/ext/xsl/tests/xslt004.phpt +++ b/ext/xsl/tests/xslt004.phpt @@ -8,11 +8,11 @@ echo "Test 4: Checking UTF8 Output"; include("prepare.inc"); $xp = new domxpath($xsl); $res = $xp->query("/xsl:stylesheet/xsl:output/@encoding"); -if (count($res) != 1) { +if ($res->length != 1) { print "No or more than one xsl:output/@encoding found"; exit; } -$res[0]->value = "utf-8"; +$res->item(0)->value = "utf-8"; $proc->importStylesheet($xsl); print "\n"; print $proc->transformToXml($dom); |
