#34591 [NEW]: XML parsing seems to skip some data
| From: | priit at ww dot ee | Date: | Wed, 21 Sep 2005 20:59:39 +0000 |
| Subject: | #34591 [NEW]: XML parsing seems to skip some data | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-85391@lists.php.net to get a copy of this message | ||
From: priit at ww dot ee
Operating system: Windows XP SP2
PHP version: 5.0.5
PHP Bug Type: XML related
Bug description: XML parsing seems to skip some data
Description:
------------
XML parsing seems to skip certain info. specially data in fields before
öäüõ (non-american-letters) etc.
The same code has worked perfectly on any PHP 4.1+ (well until 4.3.6 or 7
I have tested it) versions.
Reproduce code:
---------------
<?xml version="1.0" encoding="ISO-8859-15"?>
<rida>
<tootaja_id>519</tootaja_id>
<eesnimi>XxX</eesnimi>
<perekonnanimi>YyY</perekonnanimi>
<synniaeg>21.02.1900</synniaeg>
<aadress>Põllu 1202-2, 10920 Tallinn</aadress>
<haridustase>kõrgharidus</haridustase>
<eriala>kaubandusökonoomika</eriala>
<telefon>625 7700</telefon>
<e_post>XxX.YyY@eee.ee</e_post>
<ametijuhend_viit></ametijuhend_viit>
<asutus>Tööturuamet</asutus>
<yksus_nimetus>Juhtkond</yksus_nimetus>
<yksus_id>10</yksus_id>
<prioriteet>1</prioriteet>
<on_peatumine>0</on_peatumine>
</rida>
Expected result:
----------------
aadress => Põllu 1202-2, 10920 Tallinn
haridustase => kõrgharidus
eriala => kaubandusökonoomika
asutus => Tööturuamet
(skipped the lines that were parsed fine!)
PHP code I use is from php homepage sample or something...
Actual result:
--------------
aadress => õllu 1202-2, 10920 Tallinn
haridustase => õrgharidus
eriala => ökonoomika
asutus => ööturuamet
--
Edit bug report at http://bugs.php.net/?id=34591&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34591&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34591&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34591&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34591&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34591&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34591&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34591&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34591&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34591&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34591&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34591&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34591&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34591&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34591&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34591&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34591&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34591&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34591&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34591&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34591&r=mysqlcfg