Bug #13511 Updated: fatal error when calculating variables

From: Date: Sun, 18 Nov 2001 14:37:44 +0000
Subject: Bug #13511 Updated: fatal error when calculating variables
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-70808@lists.php.net to get a copy of this message
ID: 13511 Updated by: sterling Reported By: bleek@jobpilot.de Old Status: Open Status: Closed Bug Type: Sablotron XSL Operating System: linux 2.2.6 i686 PHP Version: 4.0.5 New Comment: Sablotron problem, not a php problem Previous Comments: ------------------------------------------------------------------------ [2001-10-02 09:56:47] bleek@jobpilot.de 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 this bug report at http://bugs.php.net/?id=13511&edit=1

« previous php.dev (#70808) next »