|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-03-17 19:29 UTC] ez at daoldskool dot org
Description: ------------ Hi folks ! cannot figure out why the issue is still open ? wddx serialization/deserialization MUST be reversible, symetric and scalable if it's necessary to utf8_encode a string that's already encoded, what's the point thus you are breaking something here anyone volunteer here ? if not give me a developper account and i'll fix it ;) for real ! here is another proof of concept : http://peoplemode.daoldskool.org:88/__dev/test/test_NATIVE.php comparing to PEAR : http://peoplemode.daoldskool.org:88/__dev/test/test_PEAR.php Thanx anyway, comments very appreciated Regards Antonin PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 11:00:02 2025 UTC |
I don't need a "proof", I need short and complete reproduce code with expected and actual results. >what php_wddx_deserialize_ex if not an instance of the EXPAT >parser : line 1140 parser = XML_ParserCreate("ISO-8859-1") See ext/xml/compat.c, line 379.hey, don't be too fast dude ! here is the code, assuming my terminal is unicode compatible (OS X Tiger 10.4.5); ezmac:/src/php-src/sapi/cli root# ./php -a Interactive mode enabled <?php $wddx = file_get_contents('wddx_utf8.xml'); echo $wddx; <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <wddxPacket version='1.0'><header/><data><string>???o??</ string></data></wddxPacket> echo wddx_deserialize($wddx); ???o?? echo wddx_deserialize(utf8_encode($wddx)); ???o?? as you see when wddx_deserialize($wddx), i am expecting ???o?? but i got ???o?? i have to rencode the document - i repeat myself, the docuement is already utf8 - a second time to get the expected result : wddx_deserialize(utf8_encode($wddx)) are you convinced now ? this is NOT a feature request for a future release this a BUG submission because you should not force the encoding to iso-8859-1 with the parser