From c9bd0195a3550c92b381827a595e8415454cfd7c Mon Sep 17 00:00:00 2001 From: Christian Stocker Date: Sun, 18 Jan 2004 12:30:52 +0000 Subject: -test for more than one argument (this segfaulted before) --- ext/xsl/tests/xslt011.phpt | 10 +++++----- ext/xsl/tests/xslt011.xsl | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'ext/xsl') diff --git a/ext/xsl/tests/xslt011.phpt b/ext/xsl/tests/xslt011.phpt index 4691df0a98..46adfef5db 100644 --- a/ext/xsl/tests/xslt011.phpt +++ b/ext/xsl/tests/xslt011.phpt @@ -18,11 +18,11 @@ $dom = new domDocument(); $xml = new DomDocument(); $xml->load(dirname(__FILE__)."/xslt011.xml"); print $proc->transformToXml($xml); - function foobar($id ) { + function foobar($id, $secondArg = "" ) { if (is_array($id)) { - return $id[0]->value; + return $id[0]->value . " - " . $secondArg; } else { - return $id; + return $id . " - " . $secondArg; } } function nodeSet($id = null) { @@ -42,8 +42,8 @@ Test 11: php:function Support Notice: Object of class foo could not be converted to string in %s on line 15 -foobar -foobar +foobar - secondArg +foobar - this is from an external DomDocument from the Input Document Object diff --git a/ext/xsl/tests/xslt011.xsl b/ext/xsl/tests/xslt011.xsl index 2d5773f962..55609bbeaa 100644 --- a/ext/xsl/tests/xslt011.xsl +++ b/ext/xsl/tests/xslt011.xsl @@ -4,7 +4,7 @@ xsl:extension-element-prefixes="php" version='1.0'> - + -- cgit v1.2.1