[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-bugs
Subject:    [DOC-BUGS] Doc #53203 [Opn->Csd]: Incorrect default value for iconv_strelen() parameter
From:       rquadling () php ! net
Date:       2010-10-29 16:24:16
Message-ID: 20101029162419.005562912 () ez1 ! php ! net
[Download RAW message or body]

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

-- 
PHP Documentation Bugs Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic