php.net |  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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: holliwell at gmx dot net
New email:
PHP Version: OS:

 

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

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.
<pre>
<?php
iconv_set_encoding("internal_encoding", "UTF-8");
iconv_set_encoding("output_encoding", "ISO-8859-1");
var_dump(iconv_get_encoding());
?>
</pre
Throws a warning about Wrong parameter count...

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

Regards
Friedhelm Betz

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

http://snaps.php.net/win32/

 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Nov 24 13:01:23 2020 UTC