Bug #13511: fatal error when calculating variables
| From: | bleek at jobpilot dot de | Date: | Tue, 02 Oct 2001 13:56:48 +0000 |
| Subject: | Bug #13511: fatal error when calculating variables | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-67038@lists.php.net to get a copy of this message | ||
From: bleek@jobpilot.de
Operating system: linux 2.2.6 i686
PHP version: 4.0.5
PHP Bug Type: Sablotron XSL
Bug description: fatal error when calculating variables
The following error:
php: expr.cpp:1435: const class Str & Expression::tostringRef() const:
Zusicherung »(functor == EXF_ATOM) && (type == EX_STRING)« nicht erfüllt.
Abgebrochen
is produced by the following code:
XML:
<?xml version="1.0"?>
<return>
<a>2</a>
<b>3</b>
</return>
XSL:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="return">
<xsl:variable name="a" select="a"/>
<xsl:variable name="b" select="b"/>
<input type="hidden" name="startquery" value="{$a+$b}"/>
</xsl:template>
</xsl:stylesheet>
PHP:
<?php
$xmlSource=join("",file("test.xml"));
$xslSource=join("",file("test.xsl"));
xslt_process($xslSource, $xmlSource, $result);
print "\n\n$result";
?>
--
Edit bug report at: http://bugs.php.net/?id=13511&edit=1