Doc #66246 [Opn->Csd]: mb_strlen: wrong return type and values description
| From: | mfonda@php.net | Date: | Sun, 08 Dec 2013 17:19:59 +0000 |
| Subject: | Doc #66246 [Opn->Csd]: mb_strlen: wrong return type and values description | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-10692@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66246&edit=1
ID: 66246
Updated by: mfonda@php.net
Reported by: phpmpan at mpan dot pl
Summary: mb_strlen: wrong return type and values description
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
-Assigned To:
+Assigned To: mfonda
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2013-12-08 17:19:12] mfonda@php.net
Automatic comment from SVN on behalf of mfonda
Revision: http://svn.php.net/viewvc/?view=revision&revision=332297
Log: mb_strlen returns false if invalid encoding is given (fixes #66246)
------------------------------------------------------------------------
[2013-12-08 05:44:51] phpmpan at mpan dot pl
Description:
------------
---
From manual page: http://www.php.net/function.mb-strlen
---
The documentation misses information that
mb_strlen returns boolean false
if the encoding argument is invalid.
Test script:
---------------
var_dump(mb_strlen('xyz', 'invalid-encoding'));
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66246&edit=1