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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC