#22903 [Opn->Fbk]: when parsing xml php crashes
| From: | iliaa@php.net | Date: | Wed, 26 Mar 2003 15:23:49 +0000 |
| Subject: | #22903 [Opn->Fbk]: when parsing xml php crashes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-36492@lists.php.net to get a copy of this message | ||
ID: 22903
Updated by: iliaa@php.net
Reported By: spoerri at duke dot edu
-Status: Open
+Status: Feedback
Bug Type: XML related
Operating System: linux
PHP Version: 4.3.1
New Comment:
What is your XML parsing code?
Previous Comments:
------------------------------------------------------------------------
[2003-03-26 09:13:27] spoerri at duke dot edu
Hi,
while parsing an XML response (using expat) from a 3rd party
server. The parsing works fine, with the exception for one
tag for which the info for an attribute is droped (empty). The
thing is that the tag occur more than once and is parsed
correctly the other times.
I also tried to print the attributes for each of those tags, but
php seems crash (seg. fault error in apache log) after the
second occurance of the LAYINFO tag (this is also the tag
which loses the ID attribut value).
When I switched back to php 4.2.3, the parsing works fine
again.
Thanks for your help,
Christoph
**** sample XML file (partial file only) *****
<LAYERINFO type="image" name="ocean1prj2.tif"
visible="true" id="12">
<ENVELOPE minx="-178.183334350586"
miny="-72.0226440429688" maxx="180.016647338867"
maxy="71.9773483276367" />
</LAYERINFO>
<LAYERINFO type="featureclass" visible="true"
name="world_usa_canada" id="14">
<FCLASS type="polygon">
<ENVELOPE minx="-180" miny="-90" maxx="180"
maxy="83.6235961914062" />
</FCLASS>
<SIMPLERENDERER>
<SIMPLEPOLYGONSYMBOL fillcolor="99,172,99"
filltransparency="1" boundarycolor="51,102,51"
boundarytransparency="1" boundarycaptype="round" />
</SIMPLERENDERER>
</LAYERINFO>
<LAYERINFO type="featureclass" visible="true" name="latlong"
id="13">
<FCLASS type="line">
<ENVELOPE minx="-180" miny="-90" maxx="180" maxy="90"
/>
</FCLASS>
<SIMPLERENDERER>
<SIMPLELINESYMBOL color="192,192,192" width="1"
captype="round" />
</SIMPLERENDERER>
</LAYERINFO>
*********************
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22903&edit=1