php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #53203 Incorrect default value for iconv_strelen() parameter
Submitted: 2010-10-29 18:15 UTC Modified: 2010-10-29 18:24 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: phoenix at todofixthis dot com Assigned: rquadling (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: phoenix at todofixthis dot com
New email:
PHP Version: OS:

 

 [2010-10-29 18:15 UTC] phoenix at todofixthis dot com
Description:
------------
In the documentation for iconv_strlen(), the function signature is listed as:

int iconv_strlen ( string $str [, string $charset = ini_set("iconv.internal_encoding") ] )

Note that the default value for the $charset parameter is ini_set(...), but this does not appear to be correct; ini_set() is used to set an INI value and return the old value — not retrieve the current value.

Perhaps the author intended ini_get(...) instead?

Test script:
---------------
N/A


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-29 18:23 UTC] rquadling@php.net
Automatic comment from SVN on behalf of rquadling
Revision: http://svn.php.net/viewvc/?view=revision&revision=304987
Log: Initializer is equivalent to the result of ini_get() and not ini_set().
Fixes bug #53203
 [2010-10-29 18:24 UTC] rquadling@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: rquadling
 [2010-10-29 18:24 UTC] rquadling@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 12:00:01 2026 UTC