php / php/doc-en

mb_strlen & friends error section for $encoding

Open
#2,751 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Extension: mbstring
Dominant language
XML
Stars
596
Forks
890
Avg merge
1d 15h
Merged PRs (30d)
55

Description

https://www.php.net/manual/en/function.mb-strlen.php mentions in the error section that a warning may be raised with an invalid encoding. But that's not what happens: https://3v4l.org/E9s0i. A ValueError is raised instead.
For some other pages, the error condition for $encoding is also not specified. I only had a quick look instead of composing a list of all the pages that lack one.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the mb_strlen manual page linked in the issue and verify the invalid-$encoding behavior against the documented warning. Review related mb_* pages for missing or inaccurate $encoding error conditions; done means the affected error sections accurately describe the observed behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.