#22903 [NEW]: when parsing xml php crashes
| From: | spoerri at duke dot edu | Date: | Wed, 26 Mar 2003 15:13:27 +0000 |
| Subject: | #22903 [NEW]: when parsing xml php crashes | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-36487@lists.php.net to get a copy of this message | ||
From: spoerri at duke dot edu
Operating system: linux
PHP version: 4.3.1
PHP Bug Type: XML related
Bug description: when parsing xml php crashes
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 bug report at http://bugs.php.net/?id=22903&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22903&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22903&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22903&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22903&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22903&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22903&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22903&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22903&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22903&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22903&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22903&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22903&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22903&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22903&r=gnused