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
 [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: Fri Dec 04 18:01:23 2020 UTC