From: stronk7 at contiento dot com Operating system: MacOS X 10.3 PHP version: 5.0.1 PHP Bug Type: Documentation problem Bug description: Documentation about xml_parser_create() is inacurate
Description: ------------ I'm not absolutely sure but, the encoding specified in the xml_parser_create() seems to be the OUTPUT encoding, not the INPUT encoding (what is automatically detected). In 5.0.0 and 5.0.1 it defaults (the OUTPUT parameter) to ISO-8859-1. That's the reason because we have to fill the parameter if we want strings encoded differently. In 4.x strings were encoded to the auto-detected encoding (ISO files returned ISO strings and UTF files returned UTF strings) In 5.0.2 and so on this have changed again (if I'm not wrong) and returned strings will be always in UTF-8 (unless you specify a different OUTPUT encoding parameter, of course). See http://bugs.php.net/bug.php? id=29711 for this. Is this correct? Documentation should be changed a bit to explain al this (output vs input, differences between PHP versions...). -- Edit bug report at http://bugs.php.net/?id=30077&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30077&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30077&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30077&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30077&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30077&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30077&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30077&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30077&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30077&r=support Expected behavior: http://bugs.php.net/fix.php?id=30077&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30077&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30077&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30077&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30077&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30077&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30077&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30077&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30077&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30077&r=mysqlcfg