php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13511 fatal error when calculating variables
Submitted: 2001-10-02 09:56 UTC Modified: 2001-11-18 09:37 UTC
From: bleek at jobpilot dot de Assigned:
Status: Closed Package: Sablotron XSL
PHP Version: 4.0.5 OS: linux 2.2.6 i686
Private report: No CVE-ID: None
 [2001-10-02 09:56 UTC] bleek at jobpilot dot 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";
 
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-18 09:37 UTC] sterling@php.net
Sablotron problem, not a php problem
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 12:01:30 2024 UTC