#19355 [NEW]: optional parameter of iconv_get_encoding
| From: | holliwell at gmx dot net | Date: | Wed, 11 Sep 2002 10:43:58 +0000 |
| Subject: | #19355 [NEW]: optional parameter of iconv_get_encoding | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-19025@lists.php.net to get a copy of this message | ||
From: holliwell@gmx.net
Operating system: win2k
PHP version: 4.2.3
PHP Bug Type: ICONV related
Bug description: optional parameter of iconv_get_encoding
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 bug report at http://bugs.php.net/?id=19355&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19355&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19355&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19355&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19355&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19355&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19355&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19355&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19355&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19355&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19355&r=globals