php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #30077 Documentation about xml_parser_create() is inacurate
Submitted: 2004-09-13 19:48 UTC Modified: 2004-09-15 21:12 UTC
From: stronk7 at contiento dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.0.1 OS: MacOS X 10.3
Private report: No CVE-ID: None
 [2004-09-13 19:48 UTC] stronk7 at contiento dot com
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...).


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-15 21:12 UTC] nlopess@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:11 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=68a092d6f493d65c60c5e8b195f89d5a37fb21b4
Log: fix #30077: encondig parameter weirdness
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 06:01:38 2025 UTC