#19355 [Asn->Csd]: optional parameter of iconv_get_encoding
| From: | sniper@php.net | Date: | Wed, 11 Sep 2002 15:32:24 +0000 |
| Subject: | #19355 [Asn->Csd]: optional parameter of iconv_get_encoding | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-19055@lists.php.net to get a copy of this message | ||
ID: 19355
Updated by: sniper@php.net
Reported By: holliwell@gmx.net
-Status: Assigned
+Status: Closed
Bug Type: ICONV related
Operating System: win2k
PHP Version: 4.2.3
Assigned To: andrei
New Comment:
Fixed in the stable branch.
http://snaps.php.net/win32/
Previous Comments:
------------------------------------------------------------------------
[2002-09-11 05:43:58] holliwell@gmx.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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19355&edit=1