|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19355 optional parameter of iconv_get_encoding
Submitted: 2002-09-11 05:43 UTC Modified: 2002-09-11 10:32 UTC
From: holliwell at gmx dot net Assigned:
Status: Closed Package: ICONV related
PHP Version: 4.2.3 OS: win2k
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: holliwell at gmx dot net
New email:
PHP Version: OS:


 [2002-09-11 05:43 UTC] holliwell at gmx dot net

don't know if it's just a documentation problem:
The proto of iconv-get-encoding (in the manual)says that
the parameter type is optional (also the proto the sources).
This seems to be wrong.
iconv_set_encoding("internal_encoding", "UTF-8");
iconv_set_encoding("output_encoding", "ISO-8859-1");
Throws a warning about Wrong parameter count...

Also true on 4.1.2 on debian/linux
Both configs with php as apache module.

Friedhelm Betz


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-11 10:32 UTC]
Fixed in the stable branch.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Jul 29 19:01:23 2021 UTC