Doc #53203 [Opn->Csd]: Incorrect default value for iconv_strelen() parameter

From: Date: Fri, 29 Oct 2010 16:24:16 +0000
Subject: Doc #53203 [Opn->Csd]: Incorrect default value for iconv_strelen() parameter
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5444@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53203&edit=1 ID: 53203 Updated by: rquadling@php.net Reported by: phoenix at todofixthis dot com Summary: Incorrect default value for iconv_strelen() parameter -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: N/A PHP Version: Irrelevant -Assigned To: +Assigned To: rquadling Block user comment: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2010-10-29 18:23:51] 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:15:40] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53203&edit=1

« previous php.doc.bugs (#5444) next »